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

Side by Side Diff: tools/chrome_proxy/run_benchmark

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, 9 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 unified diff | Download patch
« no previous file with comments | « content/test/gpu/run_gpu_test.py ('k') | tools/perf/run_benchmark » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os 6 import os
7 import sys 7 import sys
8 8
9 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'telemetry')) 9 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'telemetry'))
10 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'perf')) 10 sys.path.append(os.path.join(os.path.dirname(__file__), os.pardir, 'perf'))
11 11
12 from telemetry import benchmark_runner 12 from telemetry import benchmark_runner
13 from telemetry.core import environment
13 14
14 15
15 if __name__ == '__main__': 16 if __name__ == '__main__':
16 top_level_dir = os.path.dirname(os.path.realpath(__file__)) 17 base_dir = os.path.dirname(os.path.realpath(__file__))
17 environment = benchmark_runner.Environment( 18 benchmark_runner.config = environment.Environment([base_dir])
18 top_level_dir=top_level_dir, 19 sys.exit(benchmark_runner.main())
19 benchmark_dirs=[os.path.join(top_level_dir, 'integration_tests')])
20 sys.exit(benchmark_runner.main(environment))
OLDNEW
« no previous file with comments | « content/test/gpu/run_gpu_test.py ('k') | tools/perf/run_benchmark » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698