mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
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:
parent
cd1c749b0e
commit
debca51332
@ -395,6 +395,9 @@ def main():
|
|||||||
parser.add_option('--clobber', action='store_true', dest='clobber',
|
parser.add_option('--clobber', action='store_true', dest='clobber',
|
||||||
default=False,
|
default=False,
|
||||||
help='Clobbers an old checkout before syncing')
|
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()
|
(options, args) = parser.parse_args()
|
||||||
|
|
||||||
buildroot = options.buildroot
|
buildroot = options.buildroot
|
||||||
@ -441,15 +444,17 @@ def main():
|
|||||||
_RunSmokeSuite(buildroot)
|
_RunSmokeSuite(buildroot)
|
||||||
|
|
||||||
if buildconfig['uprev']:
|
if buildconfig['uprev']:
|
||||||
|
# Don't push changes for developers.
|
||||||
|
if options.debug:
|
||||||
if buildconfig['master']:
|
if buildconfig['master']:
|
||||||
# Master bot needs to check if the other slaves completed.
|
# Master bot needs to check if the other slaves completed.
|
||||||
if cbuildbot_comm.HaveSlavesCompleted(config):
|
if cbuildbot_comm.HaveSlavesCompleted(config):
|
||||||
_UprevPush(buildroot)
|
_UprevPush(buildroot)
|
||||||
_UprevCleanup(buildroot)
|
|
||||||
else:
|
else:
|
||||||
# At least one of the slaves failed or we timed out.
|
# At least one of the slaves failed or we timed out.
|
||||||
_UprevCleanup(buildroot)
|
_UprevCleanup(buildroot)
|
||||||
Die('CBUILDBOT - One of the slaves has failed!!!')
|
Die('CBUILDBOT - One of the slaves has failed!!!')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
# Publish my status to the master if its expecting it.
|
# Publish my status to the master if its expecting it.
|
||||||
if buildconfig['important']:
|
if buildconfig['important']:
|
||||||
|
Loading…
Reference in New Issue
Block a user