Only run git-cl-try if there are bots to trigger to avoid triggering CQ dry-run

R=machenbach@chromium.org

Bug: chromium:616879
Change-Id: Ice9927dd4bbaf72141c6693e4afaf57a362f515b
Reviewed-on: https://chromium-review.googlesource.com/884281
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
Commit-Queue: Sergiy Byelozyorov <sergiyb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50852}
This commit is contained in:
Sergiy Byelozyorov 2018-01-24 19:22:32 +01:00 committed by Commit Bot
parent c077ff54ae
commit 6be9c2daed

View File

@ -105,10 +105,12 @@ def main():
'update_depot_tools', shell=True, stderr=subprocess.STDOUT, cwd=V8_BASE)
buildbot_bots = [bot for bot in options.bots if bot not in SWARMING_BOTS]
_trigger_bots('master.internal.client.v8', buildbot_bots, options)
if buildbot_bots:
_trigger_bots('master.internal.client.v8', buildbot_bots, options)
swarming_bots = [bot for bot in options.bots if bot in SWARMING_BOTS]
_trigger_bots('luci.v8-internal', swarming_bots, options)
if swarming_bots:
_trigger_bots('luci.v8-internal', swarming_bots, options)
if __name__ == '__main__': # pragma: no cover