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

Unified Diff: telemetry/telemetry/story/expectations.py

Issue 3008203003: [Telemetry] Expose disable_stories in StoryExpectations api. (Closed)
Patch Set: diabled_stories -> AsDict() Created 3 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: telemetry/telemetry/story/expectations.py
diff --git a/telemetry/telemetry/story/expectations.py b/telemetry/telemetry/story/expectations.py
index 4f948d6976038feb39ea823993e674c5f91768a4..ef3f582babe6b60c26de1c0533d1ed24446c6150 100644
--- a/telemetry/telemetry/story/expectations.py
+++ b/telemetry/telemetry/story/expectations.py
@@ -24,6 +24,13 @@ class StoryExpectations(object):
self.SetExpectations()
self._Freeze()
+ def AsDict(self):
+ """Returns information on disabled stories/benchmarks as a dictionary"""
+ return {
+ 'platforms': self._disabled_platforms,
+ 'stories': self._expectations
+ }
+
def GetBrokenExpectations(self, story_set):
story_set_story_names = [s.name for s in story_set.stories]
invalid_story_names = []
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698