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

Unified Diff: net/test/local_test_server_win.cc

Issue 10073033: Run safebrowsing_service_test through the net testserver code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 months 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
Index: net/test/local_test_server_win.cc
diff --git a/net/test/local_test_server_win.cc b/net/test/local_test_server_win.cc
index 0b3031239a127a847cb80349e13fb24fa2589293..f1fa98bd937dbcd0443f95a3ff54177c28f24778 100644
--- a/net/test/local_test_server_win.cc
+++ b/net/test/local_test_server_win.cc
@@ -94,6 +94,11 @@ bool LocalTestServer::LaunchPython(const FilePath& testserver_path) {
.Append(FILE_PATH_LITERAL("python.exe"));
CommandLine python_command(python_exe);
+
+ // Make python stdout and stderr unbuffered, to prevent incomplete stderr on
Paweł Hajdan Jr. 2012/04/17 06:38:05 Do not duplicate this code if possible (and it is)
mattm 2012/04/18 00:20:00 Done.
+ // win bots, and also fix mixed up ordering of stdout and stderr.
+ python_command.AppendSwitch("-u");
+
python_command.AppendArgPath(testserver_path);
if (!AddCommandLineArguments(&python_command))
return false;
@@ -176,4 +181,3 @@ bool LocalTestServer::WaitToStart() {
}
} // namespace net
-

Powered by Google App Engine
This is Rietveld 408576698