changeset 20046:6a03695fa72a

tests: python hash seed is only relevant after failures - otherwise keep quiet
author Mads Kiilerich <madski@unity3d.com>
date Sun, 17 Nov 2013 10:59:35 -0500
parents b3684fd2ff1a
children 10a7d2bcb81b
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Sat Nov 16 13:29:39 2013 -0800
+++ 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()