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

Unified Diff: build/android/pylib/perf/test_runner.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 | « build/android/pylib/perf/test_options.py ('k') | build/android/test_runner.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/perf/test_runner.py
diff --git a/build/android/pylib/perf/test_runner.py b/build/android/pylib/perf/test_runner.py
index 21f1d4916c54c9efaf2b70bc26a249d08bf87d41..90a2dc3f10ab52c267903fed440f25c56013a8e9 100644
--- a/build/android/pylib/perf/test_runner.py
+++ b/build/android/pylib/perf/test_runner.py
@@ -141,9 +141,12 @@ class TestRunner(base_test_runner.BaseTestRunner):
if self._options.dry_run:
full_cmd = 'echo %s' % cmd
+ logfile = sys.stdout
+ if self._options.single_step:
+ logfile = None
output, exit_code = pexpect.run(
full_cmd, cwd=os.path.abspath(constants.DIR_SOURCE_ROOT),
- withexitstatus=True, logfile=sys.stdout, timeout=timeout,
+ withexitstatus=True, logfile=logfile, timeout=timeout,
env=os.environ)
end_time = datetime.datetime.now()
if exit_code is None:
« no previous file with comments | « build/android/pylib/perf/test_options.py ('k') | build/android/test_runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698