Add --debug option to cbuildbot for developers to use cbuildbot without pushing changes.

Change-Id: Idda6c7287cdb1863eb4abe8c56da2e763e9fe777

BUG=7926
TEST=Ran with --debug and verified I didn't push a change.

Review URL: http://codereview.chromium.org/3880002
This commit is contained in:
Chris Sosa 2010-10-20 11:00:44 -07:00
parent cd1c749b0e
commit debca51332

View File

@ -395,6 +395,9 @@ def main():
parser.add_option('--clobber', action='store_true', dest='clobber',
default=False,
help='Clobbers an old checkout before syncing')
parser.add_option('--debug', action='store_true', dest='debug',
default=False,
help='Override some options to run as a developer.')
(options, args) = parser.parse_args()
buildroot = options.buildroot
@ -441,15 +444,17 @@ def main():
_RunSmokeSuite(buildroot)
if buildconfig['uprev']:
# Don't push changes for developers.
if options.debug:
if buildconfig['master']:
# Master bot needs to check if the other slaves completed.
if cbuildbot_comm.HaveSlavesCompleted(config):
_UprevPush(buildroot)
_UprevCleanup(buildroot)
else:
# At least one of the slaves failed or we timed out.
_UprevCleanup(buildroot)
Die('CBUILDBOT - One of the slaves has failed!!!')
else:
# Publish my status to the master if its expecting it.
if buildconfig['important']: