diff options
author | rsimha@google.com <rsimha@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-12 21:53:15 +0000 |
---|---|---|
committer | rsimha@google.com <rsimha@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-12 21:53:15 +0000 |
commit | 2bbc7f262c7210f275b7c1df823fcb4ef808c6d8 (patch) | |
tree | 58698f38e31b69c0222ad6ce8a0fc92c9b9c55cf /net/test/python_utils.h | |
parent | 09be0c3b503fade4be4ab945ab5987dbfdf190dc (diff) | |
download | chromium_src-2bbc7f262c7210f275b7c1df823fcb4ef808c6d8.zip chromium_src-2bbc7f262c7210f275b7c1df823fcb4ef808c6d8.tar.gz chromium_src-2bbc7f262c7210f275b7c1df823fcb4ef808c6d8.tar.bz2 |
Reland: Take 2: Force python test server output to be unbuffered, so it doesn't mix with gtest output
In browser tests that use a local python server, the python output in
the test logs sometimes overlaps with gtest output, resulting in gtest
falsely detecting passing tests as incomplete. This is a result of
python's default use of buffered output, which gets written to the log
file out of order.
This patch forces the python process for local test servers to use
unbuffered mode via the -u switch. This way, by the time gtest is ready
to log a passing test, all testserver output is already written to the
log file.
Update: The win xp bots were adversely affected by the -u switch, so we now
apply it only for mac and linux, which is where the original problem was found.
BUG=147368
TEST=See sync integration test output when it is redirected to a log file, and make sure there are no false negatives.
Originally committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=156361
Review URL: https://codereview.chromium.org/10907162
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@156389 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/test/python_utils.h')
-rw-r--r-- | net/test/python_utils.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/test/python_utils.h b/net/test/python_utils.h index 583fb27..c7cf289 100644 --- a/net/test/python_utils.h +++ b/net/test/python_utils.h @@ -7,6 +7,7 @@ #include "base/compiler_specific.h" +class CommandLine; class FilePath; // This is the python path variable name. @@ -18,7 +19,7 @@ void AppendToPythonPath(const FilePath& dir); // Return the location of the compiler-generated python protobuf. bool GetPyProtoPath(FilePath* dir); -// Returns the path that should be used to launch Python. -bool GetPythonRunTime(FilePath* path) WARN_UNUSED_RESULT; +// Returns the command that should be used to launch Python. +bool GetPythonCommand(CommandLine* python_cmd) WARN_UNUSED_RESULT; #endif // NET_TEST_PYTHON_UTILS_H_ |