cbuildbot: Add --previous-build-state option
cbuildbot_launch will start passing this option when it loads
locally-saved build state. We need to add it to cbuildbot first so that
it won't reject the option.
BUG=chromium:829665
TEST=local tryjobs
Change-Id: I5ffdfe6d8e6dd48407575a92800100b9b1c79c42
Reviewed-on: https://chromium-review.googlesource.com/1015648
Commit-Ready: Benjamin Gordon <bmgordon@chromium.org>
Tested-by: Benjamin Gordon <bmgordon@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
diff --git a/scripts/cbuildbot.py b/scripts/cbuildbot.py
index 95e2b07..b7a416a 100644
--- a/scripts/cbuildbot.py
+++ b/scripts/cbuildbot.py
@@ -555,6 +555,10 @@
'method of MasterSlaveSyncCompletionStage, by '
'specifying a file with a pickle of the result '
'to be returned.')
+ group.add_option('--previous-build-state', type='string', default='',
+ api=constants.REEXEC_API_PREVIOUS_BUILD_STATE,
+ help='A base64-encoded BuildSummary object describing the '
+ 'previous build run on the same build machine.')
parser.add_argument_group(group)