[PATCH 1 of 2] run-tests: move install.err into test area

timeless timeless at mozdev.org
Thu Apr 7 11:21:47 UTC 2016


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1460027515 0
#      Thu Apr 07 11:11:55 2016 +0000
# Node ID 502190ebde8f7489eec812006cfb1f7025a73562
# Parent  ea86cdcd9b50bf38c6b9dd7bbaa04b9c8cc0aefb
run-tests: move install.err into test area

Without this, sometimes installerrs generated errors
about no such file. It also did not work well when you
had multiple tests runners running around.

It also did not make sense to pollute the repository test
directory with the log file.

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -2313,7 +2313,7 @@
         This will also configure hg with the appropriate testing settings.
         """
         vlog("# Performing temporary installation of HG")
-        installerrs = os.path.join(b"tests", b"install.err")
+        installerrs = os.path.join(self._hgtmp, b"install.err")
         compiler = ''
         if self.options.compiler:
             compiler = '--compiler ' + self.options.compiler


More information about the Mercurial-devel mailing list