Bug 1105204 - Fix jit_test.py -f (by restoring code I thought was dead). r=mjrosenb
authorEmanuel Hoogeveen <emanuel.hoogeveen@gmail.com>
Wed, 26 Nov 2014 01:46:00 -0500
changeset 217644 b1273dc94a3e47a3b0c8801ae320257c7a00ad22
parent 217643 b6e09893ea97f0de1f6152bbf035091e8ae7aea6
child 217645 c14fd3305767537504e52171e003503ca4105af8
push id27886
push userryanvm@gmail.com
push dateThu, 27 Nov 2014 01:34:27 +0000
treeherdermozilla-central@159a0ec99a6d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmjrosenb
bugs1105204
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1105204 - Fix jit_test.py -f (by restoring code I thought was dead). r=mjrosenb CLOSED TREE
js/src/tests/lib/jittests.py
--- a/js/src/tests/lib/jittests.py
+++ b/js/src/tests/lib/jittests.py
@@ -594,25 +594,31 @@ def print_test_summary(num_tests, failur
                         written.add(res.test.path)
                 out.close()
             except IOError:
                 sys.stderr.write("Exception thrown trying to write failure file '%s'\n"%
                                  options.write_failures)
                 traceback.print_exc()
                 sys.stderr.write('---\n')
 
+        def show_test(res):
+            if options.show_failed:
+                print('    ' + subprocess.list2cmdline(res.cmd))
+            else:
+                print('    ' + ' '.join(res.test.jitflags + [res.test.path]))
+
         print('FAILURES:')
         for res in failures:
             if not res.timed_out:
-                print('    ' + ' '.join(res.test.jitflags + [res.test.path]))
+                show_test(res)
 
         print('TIMEOUTS:')
         for res in failures:
             if res.timed_out:
-                print('    ' + ' '.join(res.test.jitflags + [res.test.path]))
+                show_test(res)
     else:
         print('PASSED ALL' + ('' if complete else ' (partial run -- interrupted by user %s)' % doing))
 
     if options.tinderbox:
         num_failures = len(failures) if failures else 0
         print('Result summary:')
         print('Passed: %d' % (num_tests - num_failures))
         print('Failed: %d' % num_failures)