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

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

Issue 955183003: Revert of [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: 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 797973c0c6c06f075ab8a433332f1251d5878bb4..0cdfbf078455d1f7bac72b7e81ec9bcfda1c329b 100755
--- a/content/test/gpu/run_gpu_test.py
+++ b/content/test/gpu/run_gpu_test.py
@@ -12,6 +12,7 @@
os.pardir, os.pardir, os.pardir, 'tools', 'telemetry'))
from telemetry import benchmark_runner
+from telemetry.core import environment
def _LaunchDBus():
@@ -84,14 +85,12 @@
if __name__ == '__main__':
- 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')])
+ base_dir = os.path.dirname(os.path.realpath(__file__))
+ benchmark_runner.config = environment.Environment([base_dir])
did_launch_dbus = _LaunchDBus()
try:
- retcode = benchmark_runner.main(environment)
+ retcode = benchmark_runner.main()
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