# HG changeset patch # User Mads Kiilerich # Date 2013-11-17 15:59:35 # Node ID 6a03695fa72a04235026fc6758c9bbccf9fb2345 # Parent b3684fd2ff1ab48bf90f183379b6054365736b4d tests: python hash seed is only relevant after failures - otherwise keep quiet diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1134,6 +1134,8 @@ def runtests(options, tests): _checkhglib("Tested") print "# Ran %d tests, %d skipped, %d failed." % ( tested, skipped + ignored, failed) + if results['!']: + print 'python hash seed:', os.environ['PYTHONHASHSEED'] if options.time: outputtimes(options) @@ -1185,7 +1187,6 @@ def main(): # use a random python hash seed all the time # we do the randomness ourself to know what seed is used os.environ['PYTHONHASHSEED'] = str(random.getrandbits(32)) - print 'python hash seed:', os.environ['PYTHONHASHSEED'] global TESTDIR, HGTMP, INST, BINDIR, PYTHONDIR, COVERAGE_FILE TESTDIR = os.environ["TESTDIR"] = os.getcwd()