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

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

Issue 1405573002: Telemetry: Print the sorted benchmark list when running run_benchmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/benchmark_runner.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/benchmark_runner_unittest.py
diff --git a/tools/telemetry/telemetry/benchmark_runner_unittest.py b/tools/telemetry/telemetry/benchmark_runner_unittest.py
index 715488e88ad9fe4c161ea389931a05f85a77b687..767484a1dcfb6e5288bb4ab86aac4aa2b89c59cf 100644
--- a/tools/telemetry/telemetry/benchmark_runner_unittest.py
+++ b/tools/telemetry/telemetry/benchmark_runner_unittest.py
@@ -40,8 +40,8 @@ class BenchmarkRunnerUnittest(unittest.TestCase):
def testPrintBenchmarkListWithNoDisabledBenchmark(self):
expected_printed_stream = (
'Available benchmarks for TestBrowser are:\n'
- ' FooBenchmark Benchmark Foo for testing.\n'
' BarBenchmarkkkkk Benchmark Bar for testing long description line.\n'
+ ' FooBenchmark Benchmark Foo for testing.\n'
'Pass --browser to list benchmarks for another browser.\n\n')
with mock.patch('telemetry.benchmark_runner.decorators') as mock_module:
mock_module.IsEnabled.return_value = (True, None)
@@ -98,8 +98,8 @@ class BenchmarkRunnerUnittest(unittest.TestCase):
'Pass --browser to list benchmarks for another browser.\n\n'
# Expected output for 'MockBrowser':
'Available benchmarks for MockBrowser are:\n'
- ' FooBenchmark Benchmark Foo for testing.\n'
' BarBenchmarkkkkk Benchmark Bar for testing long description line.\n'
+ ' FooBenchmark Benchmark Foo for testing.\n'
'Pass --browser to list benchmarks for another browser.\n\n')
@classmethod
def FakeShouldDisable(cls, possible_browser):
« no previous file with comments | « tools/telemetry/telemetry/benchmark_runner.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698