Bug 1227239 - Fix generation of talos summary where # subtests > 1;r=jmaher
authorWilliam Lachance <wlachance@mozilla.com>
Tue, 24 Nov 2015 13:51:07 -0500
changeset 274068 6d1c2307127fefbd5cf6dd907f637b1ab9ea190a
parent 274067 94ac8462f12422760091070377787553cf9a647d
child 274069 012dcbfda02be40095078da238635359813e5437
push id29721
push usercbook@mozilla.com
push dateWed, 25 Nov 2015 11:52:17 +0000
treeherdermozilla-central@1835baed2a38 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs1227239
milestone45.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 1227239 - Fix generation of talos summary where # subtests > 1;r=jmaher
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: