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

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

Issue 942663002: [Telemetry] Pass test_runner environment in local args instead of a global variable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix find_dependencies issue Created 5 years, 10 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/chrome_proxy/run_benchmark » ('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 0cdfbf078455d1f7bac72b7e81ec9bcfda1c329b..797973c0c6c06f075ab8a433332f1251d5878bb4 100755
--- a/content/test/gpu/run_gpu_test.py
+++ b/content/test/gpu/run_gpu_test.py
@@ -12,7 +12,6 @@ sys.path.append(os.path.join(os.path.dirname(__file__),
os.pardir, os.pardir, os.pardir, 'tools', 'telemetry'))
from telemetry import benchmark_runner
-from telemetry.core import environment
def _LaunchDBus():
@@ -85,12 +84,14 @@ def _ShutdownDBus():
if __name__ == '__main__':
- base_dir = os.path.dirname(os.path.realpath(__file__))
- benchmark_runner.config = environment.Environment([base_dir])
+ top_level_dir = os.path.dirname(os.path.realpath(__file__))
+ environment = benchmark_runner.Environment(
+ top_level_dir=top_level_dir,
+ benchmark_dirs=[os.path.join(top_level_dir, 'gpu_tests')])
did_launch_dbus = _LaunchDBus()
try:
- retcode = benchmark_runner.main()
+ retcode = benchmark_runner.main(environment)
finally:
if did_launch_dbus:
_ShutdownDBus()
« no previous file with comments | « no previous file | tools/chrome_proxy/run_benchmark » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698