summaryrefslogtreecommitdiffstats
path: root/tools/run-bisect-manual-test.py
diff options
context:
space:
mode:
authorwolenetz <wolenetz@chromium.org>2014-10-29 11:57:40 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-29 18:58:04 +0000
commit80420e6031d94679f13af28f7d072e80a484b3a0 (patch)
tree0bc2d41bb6e53e29eaf04975a0d2432fd6a9a688 /tools/run-bisect-manual-test.py
parentf5adb81e03b2570fb484a31cb3ae315fa93aa195 (diff)
downloadchromium_src-80420e6031d94679f13af28f7d072e80a484b3a0.zip
chromium_src-80420e6031d94679f13af28f7d072e80a484b3a0.tar.gz
chromium_src-80420e6031d94679f13af28f7d072e80a484b3a0.tar.bz2
Add --goma_threads option to bisection tools
Lets user of run-bisect-manual-test.py specify a non-default value for number of goma threads, and hooks this into Builder used by bisect_perf_regression.py. Example usage: python tools/run-bisect-manual-test.py --browser=release -b 100 -g 50 -w ../../tmp --goma_threads 50 R=qyearsley@chromium.org TEST=script passes through specified value that defaults to 64 Bug=none Review URL: https://codereview.chromium.org/679353002 Cr-Commit-Position: refs/heads/master@{#301896}
Diffstat (limited to 'tools/run-bisect-manual-test.py')
-rwxr-xr-xtools/run-bisect-manual-test.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/tools/run-bisect-manual-test.py b/tools/run-bisect-manual-test.py
index 7b14577..96a7b0d 100755
--- a/tools/run-bisect-manual-test.py
+++ b/tools/run-bisect-manual-test.py
@@ -79,6 +79,9 @@ def _RunBisectionScript(options):
if options.target_build_type:
cmd.extend(['--target_build_type', options.target_build_type])
+ if options.goma_threads:
+ cmd.extend(['--goma_threads', options.goma_threads])
+
cmd = [str(c) for c in cmd]
return_code = subprocess.call(cmd)
@@ -122,10 +125,13 @@ def main():
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".')
+ type='choice',
+ choices=['Release', 'Debug'],
+ help='The target build type. Choices are "Release" '
+ 'or "Debug".')
+ parser.add_option('--goma_threads',
+ type='int',
+ help='Number of goma threads to use.')
options, _ = parser.parse_args()
error_msg = ''
if not options.good_revision: