DescriptionReland: 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
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=156389
Patch Set 1 #
Total comments: 2
Patch Set 2 : Make GetPythonRunTime take a CommandLine instead of a FilePath. #
Total comments: 4
Patch Set 3 : Fix nits #Patch Set 4 : Don't use unbuffered mode on Windows. #
Messages
Total messages: 11 (0 generated)
|