# HG changeset patch # User Mads Kiilerich # Date 1384703975 18000 # Node ID 164ed9bf157c5020c7b6ab47d05c3297d1806b29 # Parent d8b739c3d37a1d8e069d32097fd9ed73f0e4291d tests: python hash seed is only relevant after failures - otherwise keep quiet [ original upstream message ] diff -r d8b739c3d37a -r 164ed9bf157c tests/run-tests.py --- a/tests/run-tests.py Fri Nov 15 22:57:11 2013 -0500 +++ b/tests/run-tests.py Sun Nov 17 10:59:35 2013 -0500 @@ -1134,6 +1134,8 @@ _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 @@ # 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()