Bug 1156045 - Only print jstests assertion output on failure. r=sfink, a=test-only
authorTerrence Cole <terrence@mozilla.com>
Thu, 23 Apr 2015 13:51:37 -0700
changeset 266172 b8a4ed23ed26
parent 266171 683cbf33c92a
child 266173 9d6eae8f4c6e
push id4774
push userryanvm@gmail.com
push date2015-06-03 18:00 +0000
treeherdermozilla-beta@05122c19b3d7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssfink, test-only
bugs1156045
milestone39.0
Bug 1156045 - Only print jstests assertion output on failure. r=sfink, a=test-only
js/src/tests/lib/results.py
--- a/js/src/tests/lib/results.py
+++ b/js/src/tests/lib/results.py
@@ -166,17 +166,17 @@ class ResultsSink:
             if result.result == TestResult.PASS and not result.test.random:
                 self.counts['PASS'] += 1
             elif result.test.expect and not result.test.random:
                 self.counts['FAIL'] += 1
             else:
                 self.counts['SKIP'] += 1
 
             if self.options.tinderbox:
-                if len(result.results) > 1:
+                if result.result != TestResult.PASS and len(result.results) > 1:
                     for sub_ok, msg in result.results:
                         tup = (sub_ok, result.test.expect, result.test.random)
                         label = self.LABELS[tup][0]
                         if label == 'TEST-UNEXPECTED-PASS':
                             label = 'TEST-PASS (EXPECTED RANDOM)'
                         self.print_tinderbox_result(
                             label, result.test, time=output.dt,
                             message=msg)