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

Unified Diff: tools/perf/scripts_smoke_unittest.py

Issue 1477793002: [tools/perf] Add smoke test cover for record_wpr list command (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: tools/perf/scripts_smoke_unittest.py
diff --git a/tools/perf/scripts_smoke_unittest.py b/tools/perf/scripts_smoke_unittest.py
index c8ea208794a02e8aa8c9a4dd7661eae0640d54a9..a9e3e3240e98b6b75cc2e2eb50155e29de0f8a2f 100644
--- a/tools/perf/scripts_smoke_unittest.py
+++ b/tools/perf/scripts_smoke_unittest.py
@@ -48,6 +48,11 @@ class ScriptsSmokeTest(unittest.TestCase):
self.assertIn('optional arguments:', stdout)
self.assertEquals(return_code, 0)
+ def testRunRecordWprList(self):
+ return_code, stdout = self.RunPerfScript('record_wpr --list-benchmarks')
+ self.assertIn('kraken', stdout)
+ self.assertEquals(return_code, 0)
+
def testRunBenchmarkListJSONListsOutBenchmarks(self):
tmp_file = tempfile.NamedTemporaryFile(delete=False)
tmp_file_name = tmp_file.name
« 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