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

Unified Diff: content/test/gpu/run_gpu_test.py

Issue 274773002: [telemetry] Prototype for specifying page sets using Python imports and Telemetry discovery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 | tools/perf/benchmarks/smoothness.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/gpu/run_gpu_test.py
diff --git a/content/test/gpu/run_gpu_test.py b/content/test/gpu/run_gpu_test.py
index fd5e36887bf6d9cd4ab9200adfe9bfd2754472de..77297f689ac9fb8261a0061df59be77b1709b4fc 100755
--- a/content/test/gpu/run_gpu_test.py
+++ b/content/test/gpu/run_gpu_test.py
@@ -10,10 +10,13 @@ sys.path.append(os.path.join(os.path.dirname(__file__),
os.pardir, os.pardir, os.pardir, 'tools', 'telemetry'))
from telemetry import test_runner
-from telemetry.core import environment
if __name__ == '__main__':
- base_dir = os.path.dirname(os.path.realpath(__file__))
- test_runner.config = environment.Environment([base_dir])
- sys.exit(test_runner.main())
+ top_level_dir = os.path.dirname(os.path.realpath(__file__))
+ environment = test_runner.Environment(
+ top_level_dir=top_level_dir,
+ test_dirs=[os.path.join(top_level_dir, 'gpu_tests')],
+ page_set_dirs=[os.path.join(top_level_dir, 'page_sets')]
+ )
+ sys.exit(test_runner.main(environment))
« no previous file with comments | « no previous file | tools/perf/benchmarks/smoothness.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698