Index: build/android/pylib/perf/setup.py |
diff --git a/build/android/pylib/perf/setup.py b/build/android/pylib/perf/setup.py |
index 31db14fa031e0cccfe8b573bb6bc0b56f9dbaaeb..b3aa086242a39e8c41d42d4e41eef28639c2a617 100644 |
--- a/build/android/pylib/perf/setup.py |
+++ b/build/android/pylib/perf/setup.py |
@@ -98,8 +98,10 @@ def Setup(test_options, active_devices): |
flaky_steps = json.load(f) |
def TestRunnerFactory(device, shard_index): |
- return test_runner.TestRunner( |
- test_options, device, shard_index, len(all_devices), |
- steps_dict, flaky_steps) |
+ if str(device) in active_devices: |
+ return test_runner.TestRunner( |
+ test_options, device, shard_index, len(all_devices), |
+ steps_dict, flaky_steps) |
+ return None |
return (TestRunnerFactory, sorted_step_names, all_devices) |