diff options
author | marja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-16 17:25:42 +0000 |
---|---|---|
committer | marja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-16 17:25:42 +0000 |
commit | bc54a02266f9c1ef844a346b99d01044af2dbed8 (patch) | |
tree | 5bd8f0a94becffe6d339f2d01fa41bbcf1a9c72f /build | |
parent | ce404cae8c35d9c39b328e2f7207b852f482a15f (diff) | |
download | chromium_src-bc54a02266f9c1ef844a346b99d01044af2dbed8.zip chromium_src-bc54a02266f9c1ef844a346b99d01044af2dbed8.tar.gz chromium_src-bc54a02266f9c1ef844a346b99d01044af2dbed8.tar.bz2 |
Telemetry & Android: fix stderr / stdout getting mixed.
The benchmarks first print results to stdout, then information about skipped /
failed page to stderr. The test runners also redirect both streams to the same
file. If stdout is not properly flushed, the stderr output might appear in the
middle of the stdout output, and this makes the log parser fail.
R=bulach
BUG=none
Review URL: https://codereview.chromium.org/11886071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177162 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r-- | build/android/pylib/perf_tests_helper.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build/android/pylib/perf_tests_helper.py b/build/android/pylib/perf_tests_helper.py index ee2519b..9cd35c6 100644 --- a/build/android/pylib/perf_tests_helper.py +++ b/build/android/pylib/perf_tests_helper.py @@ -3,6 +3,7 @@ # found in the LICENSE file. import re +import sys import android_commands import json @@ -123,6 +124,7 @@ def PrintPerfResult(measurement, trace, values, units, result_type='default', output += '\nSd %s: %f%s' % (measurement, sd, units) if print_to_stdout: print output + sys.stdout.flush() return output |