aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2016-09-14 11:54:44 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-09-14 14:20:21 -0700
commit6395d39689b42e519aa37c6ac9ca0fedd765b391 (patch)
tree6f3a054ef20be772434c7e3b95730c235d704124
parented69676d435b7b6983271ed8fab200627a0b966e (diff)
downloadtoolchain-utils-6395d39689b42e519aa37c6ac9ca0fedd765b391.tar.gz
[crosperf] Don't run kernel test in llvm rotating testsers.
Update the nightly rotating testers to not run the kernel tests for the LLVM images, since the kernel is not built with LLVM BUG=None TEST=None Change-Id: Ib2efe2211d6c9e86b80db2470c428d70e30e5516 Reviewed-on: https://chrome-internal-review.googlesource.com/286800 Commit-Ready: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com> Reviewed-by: Yunlian Jiang <yunlian@google.com>
-rwxr-xr-xbuildbot_test_llvm.py32
1 files changed, 17 insertions, 15 deletions
diff --git a/buildbot_test_llvm.py b/buildbot_test_llvm.py
index c95dcf67..46b12a68 100755
--- a/buildbot_test_llvm.py
+++ b/buildbot_test_llvm.py
@@ -93,21 +93,23 @@ class ToolchainVerifier(object):
def _TestImages(self, image):
to_file = ''
for test in TEST:
- command = ('test_that --board {board} :lab: suite:{test} '
- '-i {image} --fast --autotest_dir '
- '~/trunk/src/third_party/autotest/files '
- '--web cautotest.corp.google.com'.format(
- board=self._board, test=test, image=image))
- ret_val = self._ce.ChrootRunCommand(self._chromeos_root, command)
- timestamp = datetime.datetime.strftime(datetime.datetime.now(),
- '%Y-%m-%d_%H:%M:%S')
- if ret_val:
- out = 'FAILED'
- else:
- out = ' '
- to_file += out + ' ' + test + ' ' + timestamp + '\n'
- with open(self._reports, 'w') as f:
- f.write(to_file)
+ # Do not run the kernel tests with the LLVM compiler.
+ if self._compiler == 'gcc' or not 'kernel' in test:
+ command = ('test_that --board {board} :lab: suite:{test} '
+ '-i {image} --fast --autotest_dir '
+ '~/trunk/src/third_party/autotest/files '
+ '--web cautotest.corp.google.com'.format(
+ board=self._board, test=test, image=image))
+ ret_val = self._ce.ChrootRunCommand(self._chromeos_root, command)
+ timestamp = datetime.datetime.strftime(datetime.datetime.now(),
+ '%Y-%m-%d_%H:%M:%S')
+ if ret_val:
+ out = 'FAILED'
+ else:
+ out = ' '
+ to_file += out + ' ' + test + ' ' + timestamp + '\n'
+ with open(self._reports, 'w') as f:
+ f.write(to_file)
def DoAll(self):
"""Main function inside ToolchainComparator class.