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: |