Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: tools/telemetry/telemetry/value/summary.py

Issue 465063002: [Telemetry] Move failure reasoning into summary.py. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Chris's comment Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/telemetry/telemetry/results/buildbot_output_formatter.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/value/summary.py
diff --git a/tools/telemetry/telemetry/value/summary.py b/tools/telemetry/telemetry/value/summary.py
index f9d372d443712a1b1c6b47abc9011bb4114d35eb..13e8ac20dfc52ba5b387fa9940d4d82099cbc6f5 100644
--- a/tools/telemetry/telemetry/value/summary.py
+++ b/tools/telemetry/telemetry/value/summary.py
@@ -35,7 +35,9 @@ class Summary(object):
]
"""
- def __init__(self, all_page_specific_values, had_failures):
+ def __init__(self, all_page_specific_values):
+ had_failures = any(isinstance(v, failure.FailureValue) for v in
+ all_page_specific_values)
self.had_failures = had_failures
self._computed_per_page_values = []
self._computed_summary_values = []
« no previous file with comments | « tools/telemetry/telemetry/results/buildbot_output_formatter.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698