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

Unified Diff: tools/telemetry/telemetry/test.py

Issue 16158006: Defining the test expectations object (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added expectations integration Created 7 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
Index: tools/telemetry/telemetry/test.py
diff --git a/tools/telemetry/telemetry/test.py b/tools/telemetry/telemetry/test.py
index f48a8823193c9c1cb83a2e4949fad32af8443575..9883c2fec111a4e7f78bfda10607f4e2cf3c9e28 100644
--- a/tools/telemetry/telemetry/test.py
+++ b/tools/telemetry/telemetry/test.py
@@ -25,6 +25,9 @@ class Test(object):
test = self.test()
ps = self.CreatePageSet(options)
+ expect = self.SetExpectations(ps)
dtu 2013/07/16 09:50:49 Better to pass in ps.expectations instead of retur
+ if expect:
+ ps.expectations = expect
results = page_runner.Run(test, ps, options)
results.PrintSummary()
return len(results.failures) + len(results.errors)

Powered by Google App Engine
This is Rietveld 408576698