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

Side by Side Diff: tools/run-bisect-manual-test.py

Issue 1260403005: Fix browser import locations in bisect-manual-test scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | « tools/bisect-manual-test.py ('k') | no next file » | 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 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 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 """Run Manual Test Bisect Tool 6 """Run Manual Test Bisect Tool
7 7
8 An example usage: 8 An example usage:
9 tools/run-bisect-manual-test.py -g 201281 -b 201290 9 tools/run-bisect-manual-test.py -g 201281 -b 201290
10 10
(...skipping 11 matching lines...) Expand all
22 import subprocess 22 import subprocess
23 import sys 23 import sys
24 24
25 CROS_BOARD_ENV = 'BISECT_CROS_BOARD' 25 CROS_BOARD_ENV = 'BISECT_CROS_BOARD'
26 CROS_IP_ENV = 'BISECT_CROS_IP' 26 CROS_IP_ENV = 'BISECT_CROS_IP'
27 _TOOLS_DIR = os.path.abspath(os.path.dirname(__file__)) 27 _TOOLS_DIR = os.path.abspath(os.path.dirname(__file__))
28 _BISECT_SCRIPT_PATH = os.path.join( 28 _BISECT_SCRIPT_PATH = os.path.join(
29 _TOOLS_DIR, 'auto_bisect', 'bisect_perf_regression.py') 29 _TOOLS_DIR, 'auto_bisect', 'bisect_perf_regression.py')
30 30
31 sys.path.append(os.path.join(_TOOLS_DIR, 'telemetry')) 31 sys.path.append(os.path.join(_TOOLS_DIR, 'telemetry'))
32 from telemetry.core import browser_options 32 from telemetry.internal.browser import browser_options
33 33
34 34
35 def _RunBisectionScript(options): 35 def _RunBisectionScript(options):
36 """Attempts to execute the bisect script (bisect_perf_regression.py). 36 """Attempts to execute the bisect script (bisect_perf_regression.py).
37 37
38 Args: 38 Args:
39 options: The configuration options to pass to the bisect script. 39 options: The configuration options to pass to the bisect script.
40 40
41 Returns: 41 Returns:
42 An exit code; 0 for success, 1 for failure. 42 An exit code; 0 for success, 1 for failure.
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 print 'SUID sandbox has not been setup.'\ 162 print 'SUID sandbox has not been setup.'\
163 ' See https://code.google.com/p/chromium/wiki/'\ 163 ' See https://code.google.com/p/chromium/wiki/'\
164 'LinuxSUIDSandboxDevelopment for more information.' 164 'LinuxSUIDSandboxDevelopment for more information.'
165 return 1 165 return 1
166 166
167 return _RunBisectionScript(options) 167 return _RunBisectionScript(options)
168 168
169 169
170 if __name__ == '__main__': 170 if __name__ == '__main__':
171 sys.exit(main()) 171 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/bisect-manual-test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698