aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipes/perf.py
diff options
context:
space:
mode:
authorGravatar Eric Boren <borenet@google.com>2017-06-28 13:50:22 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-28 18:46:16 +0000
commit89cd35795f7cc3042084fb14fec27102c6e67f2c (patch)
tree94c732f308d4bc2e64e9c4226cdf5fbbf53378c6 /infra/bots/recipes/perf.py
parenta4f792da37eada1dcc05c50b152e20ac36a0977c (diff)
Fix recipes/tests for new Debian bots
Bug: skia:6612 Change-Id: I2920bb7b1aa3ebb021223ed6345f13f1f9c8bc24 Reviewed-on: https://skia-review.googlesource.com/21141 Reviewed-by: Ben Wagner <benjaminwagner@google.com> Commit-Queue: Eric Boren <borenet@google.com>
Diffstat (limited to 'infra/bots/recipes/perf.py')
-rw-r--r--infra/bots/recipes/perf.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/infra/bots/recipes/perf.py b/infra/bots/recipes/perf.py
index f7f6dba44a..3e8e78e11a 100644
--- a/infra/bots/recipes/perf.py
+++ b/infra/bots/recipes/perf.py
@@ -26,7 +26,7 @@ DEPS = [
]
-def nanobench_flags(bot):
+def nanobench_flags(api, bot):
args = ['--pre_log']
if 'GPU' in bot:
@@ -74,7 +74,7 @@ def nanobench_flags(bot):
# We want to test both the OpenGL config and the GLES config on Linux Intel:
# GL is used by Chrome, GLES is used by ChromeOS.
- if 'Intel' in bot and 'Ubuntu' in bot:
+ if 'Intel' in bot and api.vars.is_linux:
configs.append('gles')
# Bench instanced rendering on a limited number of platforms
@@ -148,7 +148,7 @@ def nanobench_flags(bot):
match.append('~text_16_LCD_BK')
match.append('~text_16_LCD_FF')
match.append('~text_16_LCD_WT')
- if 'Intel' in bot and 'Ubuntu' in bot and not 'Vulkan' in bot:
+ if ('Intel' in bot and api.vars.is_linux and not 'Vulkan' in bot):
# TODO(dogben): Track down what's causing bots to die.
verbose = True
if 'Vulkan' in bot and 'NexusPlayer' in bot:
@@ -241,7 +241,7 @@ def perf_steps(api):
skip_flag = '--nocpu'
if skip_flag:
args.append(skip_flag)
- args.extend(nanobench_flags(api.vars.builder_name))
+ args.extend(nanobench_flags(api, api.vars.builder_name))
if 'Chromecast' in api.vars.builder_cfg.get('os', ''):
# Due to limited disk space, run a watered down perf run on Chromecast.