aboutsummaryrefslogtreecommitdiff
path: root/buildbot_test_toolchains.py
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2015-08-28 13:54:04 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-09-02 11:26:50 -0700
commit2f56356f9b66da22a87058ab83b75b5690fe6fd8 (patch)
treec6be679723b3465f0fb3033aad6619f45dfaf327 /buildbot_test_toolchains.py
parent364131220999a99b408c5ef848da17844028c604 (diff)
downloadtoolchain-utils-2f56356f9b66da22a87058ab83b75b5690fe6fd8.tar.gz
buildbot_test_toolchains: differenciate llvm build
This changes the email title and the name of experiment file when using the patch for LLVM build. BUG=none TEST=it did not die at first when running a test job. Change-Id: Iaeafbd68eaa1e30d4e5ef5edc51bfa41f5f2e56e Reviewed-on: https://chrome-internal-review.googlesource.com/228657 Commit-Ready: Yunlian Jiang <yunlian@google.com> Tested-by: Yunlian Jiang <yunlian@google.com> Reviewed-by: Caroline Tice <cmtice@google.com>
Diffstat (limited to 'buildbot_test_toolchains.py')
-rwxr-xr-xbuildbot_test_toolchains.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/buildbot_test_toolchains.py b/buildbot_test_toolchains.py
index c899758f..d931c908 100755
--- a/buildbot_test_toolchains.py
+++ b/buildbot_test_toolchains.py
@@ -25,6 +25,9 @@ from utils import buildbot_utils
# CL that updated GCC ebuilds to use 'next_gcc'.
USE_NEXT_GCC_PATCH = "230260"
+# CL that uses LLVM to build the peppy image.
+USE_LLVM_PATCH = "295217"
+
# The boards on which we run weekly reports
WEEKLY_REPORT_BOARDS = ["lumpy"]
@@ -96,6 +99,10 @@ class ToolchainComparator():
experiment_file_dir = os.path.join (self._chromeos_root, "..",
self._weekday)
experiment_file_name = "%s_toolchain_experiment.txt" % self._board
+
+ if self._patches_string == USE_LLVM_PATCH:
+ experiment_file_name = "%s_llvm_experiment.txt" % self._board
+
experiment_file = os.path.join (experiment_file_dir,
experiment_file_name)
experiment_header = """
@@ -206,8 +213,11 @@ class ToolchainComparator():
"msg_body.html")
if (os.path.exists(filename) and
os.path.exists(os.path.expanduser(MAIL_PROGRAM))):
- command = ('cat %s | %s -s "buildbot test results, %s" -team -html'
- % (filename, MAIL_PROGRAM, self._board))
+ email_title = "buildbot test results"
+ if self._patches_string == USE_LLVM_PATCH:
+ email_title = "buildbot llvm test results"
+ command = ('cat %s | %s -s "%s, %s" -team -html'
+ % (filename, MAIL_PROGRAM, email_title, self._board))
self._ce.RunCommand(command)
def DoAll(self):