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

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

Issue 399893003: Add "description" attribute to Value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix calls to Value constructor so that the tests pass. Created 6 years, 5 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/value/__init__.py ('k') | tools/telemetry/telemetry/value/histogram.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/value/failure.py
diff --git a/tools/telemetry/telemetry/value/failure.py b/tools/telemetry/telemetry/value/failure.py
index 08e2b9e8888cd7273cea1654ee8476129dabca96..252bb22f2c454e087d301513bdf611b39adc7aea 100644
--- a/tools/telemetry/telemetry/value/failure.py
+++ b/tools/telemetry/telemetry/value/failure.py
@@ -9,7 +9,7 @@ from telemetry import value as value_module
class FailureValue(value_module.Value):
- def __init__(self, page, exc_info):
+ def __init__(self, page, exc_info, description=None):
"""A value representing a failure when running the page.
Args:
@@ -18,7 +18,7 @@ class FailureValue(value_module.Value):
this failure.
"""
exc_type = exc_info[0].__name__
- super(FailureValue, self).__init__(page, exc_type, '', True)
+ super(FailureValue, self).__init__(page, exc_type, '', True, description)
self._exc_info = exc_info
@classmethod
« no previous file with comments | « tools/telemetry/telemetry/value/__init__.py ('k') | tools/telemetry/telemetry/value/histogram.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698