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

Side by Side Diff: telemetry/bin/run_browser_tests

Issue 2700563004: [Telemetry] Migrate browser_test_runner to use typ as the test runner (Closed)
Patch Set: Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | telemetry/examples/browser_tests/failed_tests.py » ('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 (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 TELEMETRY_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), '..') 9 TELEMETRY_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), '..')
10 sys.path.append(TELEMETRY_DIR) 10 sys.path.append(TELEMETRY_DIR)
11 from telemetry import project_config 11 from telemetry import project_config
12 from telemetry.testing import browser_test_runner 12 from telemetry.testing import browser_test_runner
13 13
14 14
15 def main(): 15 def main():
16 options = browser_test_runner.TestRunOptions()
17 config = project_config.ProjectConfig( 16 config = project_config.ProjectConfig(
18 top_level_dir=os.path.join(TELEMETRY_DIR, 'examples'), 17 top_level_dir=os.path.join(TELEMETRY_DIR, 'examples'),
19 benchmark_dirs=[os.path.join(TELEMETRY_DIR, 'examples', 'browser_tests')]) 18 benchmark_dirs=[os.path.join(TELEMETRY_DIR, 'examples', 'browser_tests')])
20 return browser_test_runner.Run(config, options, sys.argv[1:]) 19 return browser_test_runner.Run(config, sys.argv[1:])
21 20
22 21
23 if __name__ == '__main__': 22 if __name__ == '__main__':
24 sys.exit(main()) 23 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | telemetry/examples/browser_tests/failed_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698