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

Unified Diff: tools/run-bisect-manual-test.py

Issue 331593007: Enable manual bisects on Chrome for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Put use_goma test in the right place Created 6 years, 6 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 | « tools/bisect_utils.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/run-bisect-manual-test.py
diff --git a/tools/run-bisect-manual-test.py b/tools/run-bisect-manual-test.py
index 6a2e4ffc3c19e360e6213c2e90200e01612451d0..aa6397432a07532e61c46a222720f82c91253c43 100755
--- a/tools/run-bisect-manual-test.py
+++ b/tools/run-bisect-manual-test.py
@@ -48,11 +48,13 @@ def _RunBisectionScript(options):
'-m', 'manual_test/manual_test',
'-r', '1',
'--working_directory', options.working_directory,
- '--target_build_type', options.browser_type.title(),
'--build_preference', 'ninja',
'--use_goma',
'--no_custom_deps']
+ if options.extra_src:
+ cmd.extend(['--extra_src', options.extra_src])
+
if 'cros' in options.browser_type:
cmd.extend(['--target_platform', 'cros'])
@@ -64,8 +66,16 @@ def _RunBisectionScript(options):
'BISECT_CROS_BOARD undefined.'
print
return 1
+ elif 'android-chrome' in options.browser_type:
+ cmd.extend(['--target_platform', 'android-chrome'])
elif 'android' in options.browser_type:
cmd.extend(['--target_platform', 'android'])
+ elif not options.target_build_type:
+ cmd.extend(['--target_build_type', options.browser_type.title()])
rmcilroy 2014/06/13 14:04:21 I don't think these two lines are required - targe
aberent 2014/06/13 14:37:36 Because if, for example, browser-type is android-c
+
+ if options.target_build_type:
+ cmd.extend(['--target_build_type', options.target_build_type])
+
cmd = [str(c) for c in cmd]
@@ -102,7 +112,16 @@ def main():
help='A working directory to supply to the bisection '
'script, which will use it as the location to checkout '
'a copy of the chromium depot.')
-
+ parser.add_option('--extra_src',
+ type='str',
+ help='Path to extra source file. If this is supplied, '
+ 'bisect script will use this to override default behavior.')
+ parser.add_option('--target_build_type',
+ type='choice',
+ choices=['Release', 'Debug'],
+ default='Release',
rmcilroy 2014/06/13 14:04:21 Maybe we shouldn't have a default here and instead
aberent 2014/06/13 14:37:36 Yes. See above.
aberent 2014/06/17 13:28:17 Done.
+ help='The target build type. Choices are "Release" '
+ '(default), or "Debug".')
options, args = parser.parse_args()
error_msg = ''
if not options.good_revision:
« no previous file with comments | « tools/bisect_utils.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698