aboutsummaryrefslogtreecommitdiff
path: root/buildbot_test_toolchains.py
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2015-08-21 08:44:31 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-08-21 20:08:47 +0000
commit76259e625a3cecdbdea9c595945754d94015030a (patch)
treed264c98da68c9c15312a983fe3320561732b51b8 /buildbot_test_toolchains.py
parente52838c4ceb4c59ec7328fed94f78d24603a67f0 (diff)
downloadtoolchain-utils-76259e625a3cecdbdea9c595945754d94015030a.tar.gz
buildbot_test_toolchains: fix several errors
This fixes some errors introduced by previous patch. BUG=none TEST=the script is running fine on chrotomation2 Change-Id: Id6b49941aef5f5c8902dae9dfeefe2acc51ef310 Reviewed-on: https://chrome-internal-review.googlesource.com/227840 Reviewed-by: Caroline Tice <cmtice@google.com> Commit-Queue: Yunlian Jiang <yunlian@google.com> Tested-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'buildbot_test_toolchains.py')
-rwxr-xr-xbuildbot_test_toolchains.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/buildbot_test_toolchains.py b/buildbot_test_toolchains.py
index 2c203ce5..a54fa0f9 100755
--- a/buildbot_test_toolchains.py
+++ b/buildbot_test_toolchains.py
@@ -206,7 +206,8 @@ class ToolchainComparator():
crosperf, and copy images into seven-day report directories.
"""
date_str = datetime.date.today()
- description = "master_%s_%s_%s" % ('_'.join(USE_NEXT_GCC_PATCH),
+ patch_string = '_'.join(str(p) for p in USE_NEXT_GCC_PATCH)
+ description = "master_%s_%s_%s" % (patch_string,
self._build,
date_str)
trybot_image = buildbot_utils.GetTrybotImage(self._chromeos_root,
@@ -270,8 +271,9 @@ def Main(argv):
print "Please specify the ChromeOS root directory."
return 1
- if options.patch:
- global USE_NEXT_GCC_PATCH = options.patch.split(',')
+ if options.patches:
+ global USE_NEXT_GCC_PATCH
+ USE_NEXT_GCC_PATCH = options.patch.split(',')
fc = ToolchainComparator(options.board, options.remote,
options.chromeos_root, options.weekday)