Index: build/android/pylib/perf/setup.py |
diff --git a/build/android/pylib/perf/setup.py b/build/android/pylib/perf/setup.py |
index 39e50980d9eedfbc8bdb8606471ddbde05dead19..068212bd12ca386afb4a9ece7ab54af73c08c605 100644 |
--- a/build/android/pylib/perf/setup.py |
+++ b/build/android/pylib/perf/setup.py |
@@ -66,8 +66,13 @@ def Setup(test_options): |
# Before running the tests, kill any leftover server. |
_KillPendingServers() |
- with file(test_options.steps, 'r') as f: |
- tests = json.load(f) |
+ if test_options.single_step: |
+ # Running a single command, build the tests structure. |
+ tests = [['single_step', test_options.single_step]] |
+ |
+ if test_options.steps: |
+ with file(test_options.steps, 'r') as f: |
+ tests = json.load(f) |
# The list is necessary to keep the steps order, but internally |
# the format is squashed from a list of lists into a single dict: |