From 0da40e061f617fbc13afa7986b386e0ed1e25810 Mon Sep 17 00:00:00 2001 From: Ting-Yuan Huang Date: Fri, 18 Aug 2017 16:55:02 -0700 Subject: Move cbuildbot flags to tryjob flags They are now available and needn't to be pass through. BUG=chromium:756100 TEST=buildbot_test_toolchains.py Change-Id: Icece6e74faa8966067346a3a5fc111c9fdb5e431 Reviewed-on: https://chromium-review.googlesource.com/622309 Commit-Ready: Ting-Yuan Huang Tested-by: Ting-Yuan Huang Reviewed-by: Don Garrett --- cros_utils/buildbot_utils.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'cros_utils/buildbot_utils.py') diff --git a/cros_utils/buildbot_utils.py b/cros_utils/buildbot_utils.py index 0d524883..ae707eae 100644 --- a/cros_utils/buildbot_utils.py +++ b/cros_utils/buildbot_utils.py @@ -200,7 +200,6 @@ def GetTrybotImage(chromeos_root, patch_list, build_tag, tryjob_flags=[], - cbuildbot_flags=[], build_toolchain=False, async=False): """Launch buildbot and get resulting trybot artifact name. @@ -226,8 +225,6 @@ def GetTrybotImage(chromeos_root, prebuilt one in SDK. tryjob_flags See cros tryjob --help for available options. - - cbuildbot_flags See cbuildbot --help for available options. """ ce = command_executer.GetCommandExecuter() base_dir = os.getcwd() @@ -237,18 +234,16 @@ def GetTrybotImage(chromeos_root, patch_arg = patch_arg + ' -g ' + repr(p) toolchain_flags = '' if build_toolchain: - cbuildbot_flags.append('--latest-toolchain') + tryjob_flags.append('--latest-toolchain') os.chdir(chromeos_root) tryjob_flags = ' '.join(tryjob_flags) - cbuildbot_flags = ' '.join(cbuildbot_flags) # Launch buildbot with appropriate flags. build = buildbot_name description = build_tag - command = ('cros tryjob --yes %s --remote-description %s' - ' %s %s --passthrough --nochromesdk %s' % - (tryjob_flags, description, - patch_arg, build, cbuildbot_flags)) + command = ('cros tryjob --yes --nochromesdk --remote-description %s' + ' %s %s %s' % + (description, tryjob_flags, patch_arg, build)) _, out, _ = ce.RunCommandWOutput(command) if 'Tryjob submitted!' not in out: logger.GetLogger().LogFatal('Error occurred while launching trybot job: ' -- cgit v1.2.3