# HG changeset patch # User Gregory Szorc # Date 1397975231 25200 # Node ID 5b1b31137f95ddbb740c7ba3c054120fbf81aab9 # Parent 02087bc4f143bb14b6a1c68145516d3b9759e109 run-tests: move COVERAGE_FILE out of a global diff -r 02087bc4f143 -r 5b1b31137f95 tests/run-tests.py --- a/tests/run-tests.py Sat Apr 19 23:26:15 2014 -0700 +++ b/tests/run-tests.py Sat Apr 19 23:27:11 2014 -0700 @@ -1293,6 +1293,7 @@ self.bindir = None self.tmpbinddir = None self.pythondir = None + self.coveragefile = None def main(args, parser=None): runner = TestRunner() @@ -1340,7 +1341,6 @@ # we do the randomness ourself to know what seed is used os.environ['PYTHONHASHSEED'] = str(random.getrandbits(32)) - global COVERAGE_FILE runner.testdir = os.environ['TESTDIR'] = os.getcwd() if options.tmpdir: options.keep_tmpdir = True @@ -1409,7 +1409,7 @@ pypath.append(oldpypath) os.environ[IMPL_PATH] = os.pathsep.join(pypath) - COVERAGE_FILE = os.path.join(runner.testdir, ".coverage") + runner.coveragefile = os.path.join(runner.testdir, ".coverage") vlog("# Using TESTDIR", runner.testdir) vlog("# Using HGTMP", runner.hgtmp)