Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Unified Diff: build/android/pylib/perf/setup.py

Issue 66373004: Android: allow a --single-step for test_runner.py perf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/android/pylib/perf/test_options.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:
« no previous file with comments | « no previous file | build/android/pylib/perf/test_options.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698