Index: tools/buildbot_spec.py |
diff --git a/tools/buildbot_spec.py b/tools/buildbot_spec.py |
index 8e2f7b7b1370cd260726721274e98674f5692bc2..551907038eec0856ce470c9d3850b9dcf4a1b5d0 100755 |
--- a/tools/buildbot_spec.py |
+++ b/tools/buildbot_spec.py |
@@ -301,7 +301,7 @@ def get_builder_spec(builder_name): |
rv['do_perf_steps'] = (role == builder_name_schema.BUILDER_ROLE_PERF or |
(role == builder_name_schema.BUILDER_ROLE_TEST and |
configuration == CONFIG_DEBUG)) |
- if 'Valgrind' in builder_name: |
+ if rv['do_test_steps'] and 'Valgrind' in builder_name: |
rv['do_perf_steps'] = True |
if 'GalaxyS4' in builder_name: |
rv['do_perf_steps'] = False |