[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>
diff --git a/buildbot_test_llvm.py b/buildbot_test_llvm.py
index c95dcf6..46b12a6 100755
--- a/buildbot_test_llvm.py
+++ b/buildbot_test_llvm.py
@@ -93,21 +93,23 @@
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.