summaryrefslogtreecommitdiffstats
path: root/tools/run-bisect-manual-test.py
diff options
context:
space:
mode:
authoraberent@chromium.org <aberent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-18 15:23:06 +0000
committeraberent@chromium.org <aberent@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-18 15:23:06 +0000
commit128e3e938ad803b0057c7fb0ffd7e1e89443dc81 (patch)
treeb05940b6377d5dddc42785da245dc2b37dfdc216 /tools/run-bisect-manual-test.py
parentd7ecdef3f1379793d93c33924d8ede3bdd9c8b99 (diff)
downloadchromium_src-128e3e938ad803b0057c7fb0ffd7e1e89443dc81.zip
chromium_src-128e3e938ad803b0057c7fb0ffd7e1e89443dc81.tar.gz
chromium_src-128e3e938ad803b0057c7fb0ffd7e1e89443dc81.tar.bz2
Enable manual bisects on Chrome for Android.
This patch fixes various problems in the bisect scripts that were preventing their use for Chrome for Android. I have only tried these using run-manual-bisect-test, and there could potentially be further problems with bisect wrapper scripts. Also fixes the --use-goma option to actually use Goma, rather than simply increasing the number of threads. BUG=none Review URL: https://codereview.chromium.org/331593007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@278082 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/run-bisect-manual-test.py')
-rwxr-xr-xtools/run-bisect-manual-test.py22
1 files changed, 20 insertions, 2 deletions
diff --git a/tools/run-bisect-manual-test.py b/tools/run-bisect-manual-test.py
index 6a2e4ff..c74bd53 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()])
+
+ if options.target_build_type:
+ cmd.extend(['--target_build_type', options.target_build_type])
+
cmd = [str(c) for c in cmd]
@@ -102,7 +112,15 @@ 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'],
+ help='The target build type. Choices are "Release" '
+ 'or "Debug".')
options, args = parser.parse_args()
error_msg = ''
if not options.good_revision: