aboutsummaryrefslogtreecommitdiff
path: root/cros_utils/buildbot_utils.py
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2019-02-26 14:55:14 -0800
committerManoj Gupta <manojgupta@chromium.org>2019-02-26 23:45:12 +0000
commit21498ea09a39178f3ded0073dbafef0d94835617 (patch)
tree3f227e93b427fd06c01de2d47524a4d60472b655 /cros_utils/buildbot_utils.py
parent3edb0f56e66bedb239d8c883ed38e26a1ddd49b3 (diff)
downloadtoolchain-utils-21498ea09a39178f3ded0073dbafef0d94835617.tar.gz
toolchain-utils: Launch tryjobs from chroot.
This is to workaround a bug in launching tryjobs from outside chroot. BUG=None TEST=can launch tryjobs Change-Id: Ie0d48e9f8f487ef9a9eeebd627948492f65fed31 Reviewed-on: https://chromium-review.googlesource.com/c/1490571 Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Commit-Queue: Manoj Gupta <manojgupta@chromium.org> Tested-by: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'cros_utils/buildbot_utils.py')
-rw-r--r--cros_utils/buildbot_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cros_utils/buildbot_utils.py b/cros_utils/buildbot_utils.py
index 0d93765a..d1080e07 100644
--- a/cros_utils/buildbot_utils.py
+++ b/cros_utils/buildbot_utils.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
# Copyright 2017 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -114,7 +115,7 @@ def SubmitTryjob(chromeos_root,
# Launch buildbot with appropriate flags.
build = buildbot_name
- command = ('cros tryjob --yes --json --nochromesdk %s %s %s' %
+ command = ('cros_sdk -- cros tryjob --yes --json --nochromesdk %s %s %s' %
(tryjob_flags, patch_arg, build))
print('CMD: %s' % command)
_, out, _ = RunCommandInPath(chromeos_root, command)