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

Unified Diff: tools/perf/benchmarks/benchmark_unittest.py

Issue 637153002: telemetry: Remove command line args from page test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 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
Index: tools/perf/benchmarks/benchmark_unittest.py
diff --git a/tools/perf/benchmarks/benchmark_unittest.py b/tools/perf/benchmarks/benchmark_unittest.py
index 476804ed536fc00f2d39ba93634411665ec7bc23..5079c9acb698f3bebbf7ecb14c7221620b23d01d 100644
--- a/tools/perf/benchmarks/benchmark_unittest.py
+++ b/tools/perf/benchmarks/benchmark_unittest.py
@@ -75,7 +75,7 @@ def load_tests(_, _2, _3):
benchmarks_dir, top_level_dir, benchmark_module.Benchmark,
pattern='*.py').values()
for benchmark in all_benchmarks:
- if benchmark.PageTestClass() not in all_measurements:
+ if hasattr(benchmark, 'test') and benchmark.test not in all_measurements:
# If the benchmark is not in measurements, then it is not composable.
# Ideally we'd like to test these as well, but the non-composable
# benchmarks are usually long-running benchmarks.
« no previous file with comments | « no previous file | tools/perf/benchmarks/page_cycler.py » ('j') | tools/perf/benchmarks/rasterize_and_record_micro.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698