Bug 1517052 - [raptor] Do not report power usage when raptor fails to report results; r=jmaher
authorRob Wood <rwood@mozilla.com>
Fri, 04 Jan 2019 20:09:31 +0000
changeset 509684 7627e62b38332c8f5ccdcff98000340a4ff20e4f
parent 509683 fc381b6584997e41a989228472d1afe802bbb067
child 509685 022c976023ae3f7ac630af932d2dad1e16d03032
push id10547
push userffxbld-merge
push dateMon, 21 Jan 2019 13:03:58 +0000
treeherdermozilla-beta@24ec1916bffe [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs1517052
milestone66.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 1517052 - [raptor] Do not report power usage when raptor fails to report results; r=jmaher Differential Revision: https://phabricator.services.mozilla.com/D15744
testing/raptor/raptor/results.py
--- a/testing/raptor/raptor/results.py
+++ b/testing/raptor/raptor/results.py
@@ -67,17 +67,18 @@ class RaptorResultsHandler():
         self.supporting_data.append(supporting_data)
 
     def summarize_and_output(self, test_config):
         # summarize the result data, write to file and output PERFHERDER_DATA
         LOG.info("summarizing raptor test results")
         output = Output(self.results, self.supporting_data)
         output.summarize()
         output.summarize_screenshots(self.images)
-        if self.supporting_data is not None:
+        # only dump out supporting data (i.e. power) if actual Raptor test completed
+        if self.supporting_data is not None and len(self.results) != 0:
             output.summarize_supporting_data()
             output.output_supporting_data()
         return output.output()
 
 
 class RaptorTestResult():
     """Single Raptor test result class"""