bootstrap: Filter commandline arguments.
When invoking cbuildbot on older branches, we would pass along
cbuildbot options that didn't exist on the branch. Use cbuildbot's
existing mechanism for filtering command line options that aren't
supported by the old branch.
BUG=chromium:684887
TEST=run_tests followed by multiple local builds.
Change-Id: Ieb03ca9876618ce9e904a4098d7ee083088fc38b
Reviewed-on: https://chromium-review.googlesource.com/444829
Commit-Ready: Don Garrett <dgarrett@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
diff --git a/scripts/cbuildbot.py b/scripts/cbuildbot.py
index fa18a41..0887d1d 100644
--- a/scripts/cbuildbot.py
+++ b/scripts/cbuildbot.py
@@ -968,7 +968,7 @@
'`cbuildbot --list --all`')
-def _ParseCommandLine(parser, argv):
+def ParseCommandLine(parser, argv):
"""Completely parse the commandline arguments"""
(options, args) = parser.parse_args(argv)
@@ -1101,7 +1101,7 @@
os.umask(0o22)
parser = _CreateParser()
- options, args = _ParseCommandLine(parser, argv)
+ options, args = ParseCommandLine(parser, argv)
if options.buildbot and options.config_repo:
_FetchInitialBootstrapConfigRepo(options.config_repo, options.branch)