aboutsummaryrefslogtreecommitdiff
path: root/buildbot_test_toolchains.py
diff options
context:
space:
mode:
authorTiancong Wang <tcwang@google.com>2019-10-30 10:16:38 -0700
committerTiancong Wang <tcwang@google.com>2019-10-30 17:50:02 +0000
commit03234661857747f86e135140c7a92f57561db36d (patch)
treed389bf19093764200aa6d8b9dc12f20c1d6f03f8 /buildbot_test_toolchains.py
parent13446a7a9b3742810c7e167d5d69e7458fff7699 (diff)
downloadtoolchain-utils-03234661857747f86e135140c7a92f57561db36d.tar.gz
Nightly tests: Do not run aquarium stories in telemetry for Arm boards
This patch adds a check to skip adding aquarium stories in rendering.desktop if the board is not supported, when creating the experiment files for nightly tests. BUG=None TEST=None Change-Id: I80d5f1ae341d8ee0e41b55c180c6c5c4986a3e33 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1890821 Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Commit-Queue: Tiancong Wang <tcwang@google.com> Tested-by: Tiancong Wang <tcwang@google.com>
Diffstat (limited to 'buildbot_test_toolchains.py')
-rwxr-xr-xbuildbot_test_toolchains.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/buildbot_test_toolchains.py b/buildbot_test_toolchains.py
index e289b1a5..e3ca3196 100755
--- a/buildbot_test_toolchains.py
+++ b/buildbot_test_toolchains.py
@@ -56,6 +56,8 @@ IMAGE_RE_GROUPS = {
}
TRYBOT_IMAGE_RE = TRYBOT_IMAGE_FS.format(**IMAGE_RE_GROUPS)
+TELEMETRY_AQUARIUM_UNSUPPORTED = ['bob', 'elm', 'veyron_minnie']
+
class ToolchainComparator(object):
"""Class for doing the nightly tests work."""
@@ -175,7 +177,8 @@ class ToolchainComparator(object):
run_local: False
retries: 0
}
-
+ """
+ telemetry_aquarium_tests = """
benchmark: rendering.desktop {
run_local: False
suite: telemetry_Crosperf
@@ -195,6 +198,9 @@ class ToolchainComparator(object):
f.write(experiment_header)
f.write(experiment_tests)
+ if self.board not in TELEMETRY_AQUARIUM_UNSUPPORTED:
+ f.write(telemetry_aquarium_tests)
+
# Now add vanilla to test file.
official_image = """
vanilla_image {
@@ -277,7 +283,7 @@ class ToolchainComparator(object):
print('trybot_url: \
http://cros-goldeneye/chromeos/healthmonitoring/buildDetails?buildbucketId=%s'
% buildbucket_id)
- if len(trybot_image) == 0:
+ if not trybot_image:
self._l.LogError('Unable to find trybot_image!')
return 2