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

Unified Diff: tools/perf/run_measurement

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 | « tools/perf/run_benchmark ('k') | tools/telemetry/telemetry/core/backends/adb_commands.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/run_measurement
diff --git a/tools/perf/run_measurement b/tools/perf/run_measurement
index 362a94343eb1d7df2926bea3aa4aa3d67ca546a5..485bf56273a7058729d505e741dd849b4a8f4967 100755
--- a/tools/perf/run_measurement
+++ b/tools/perf/run_measurement
@@ -9,7 +9,6 @@ import sys
sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'telemetry'))
from telemetry import test_runner
-from telemetry.core import environment
from telemetry.core import util
from telemetry.util import bootstrap
@@ -23,9 +22,14 @@ def main():
print bootstrap.ListAllDepsPaths(CROS_BOOSTRAP_DEPS_PATH)
return 0
- 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, 'benchmarks')],
+ page_test_dirs=[os.path.join(top_level_dir, 'measurements')],
+ page_set_dirs=[os.path.join(top_level_dir, 'page_sets')]
+ )
+ return test_runner.main(environment)
if __name__ == '__main__':
« no previous file with comments | « tools/perf/run_benchmark ('k') | tools/telemetry/telemetry/core/backends/adb_commands.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698