Bug 1227239 - Fix generation of talos summary where # subtests > 1;r=jmaher, a=test-only
authorWilliam Lachance <wlachance@mozilla.com>
Tue, 24 Nov 2015 13:51:07 -0500
changeset 305754 dc0ea062f5a7868aa6ec089d4474c2cac6de90b4
parent 305753 22d5e19909222187c9285aaa4da3ad45be7813c3
child 305755 0409df514310c9be7092723c7d30b5d7a68acb99
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher, test-only
bugs1227239
milestone44.0a2
Bug 1227239 - Fix generation of talos summary where # subtests > 1;r=jmaher, a=test-only
testing/talos/talos/output.py
--- a/testing/talos/talos/output.py
+++ b/testing/talos/talos/output.py
@@ -483,18 +483,18 @@ class PerfherderOutput(Output):
                             'replicates': replicates[page],
                         }
                         subtests.append(subtest)
                         if test.test_config.get('lower_is_better') is not None:
                             subtest['lowerIsBetter'] = test.test_config['lower_is_better']
                         if test.test_config.get('unit'):
                             subtest['unit'] = test.test_config['unit']
 
-                # if there is more than one test, calculate a summary result
-                if len(tresults) > 1:
+                # if there is more than one subtest, calculate a summary result
+                if len(subtests) > 1:
                     suite['value'] = self.construct_results(
                         vals, testname=test.name())
                 if test.test_config.get('lower_is_better') is not None:
                     suite['lowerIsBetter'] = test.test_config['lower_is_better']
 
             # counters results_aux data
             counter_subtests = []
             for cd in test.all_counter_results: