OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/test/python_utils.h" | 5 #include "net/test/python_utils.h" |
6 | 6 |
7 #include "base/base_paths.h" | 7 #include "base/base_paths.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/environment.h" | 9 #include "base/environment.h" |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
113 // This permits finding the proper python in path even if it is a .bat file. | 113 // This permits finding the proper python in path even if it is a .bat file. |
114 python_cmd->SetProgram(base::FilePath(FILE_PATH_LITERAL("cmd.exe"))); | 114 python_cmd->SetProgram(base::FilePath(FILE_PATH_LITERAL("cmd.exe"))); |
115 python_cmd->AppendArg("/c"); | 115 python_cmd->AppendArg("/c"); |
116 python_cmd->AppendArg("python"); | 116 python_cmd->AppendArg("python"); |
117 #else | 117 #else |
118 python_cmd->SetProgram(base::FilePath(FILE_PATH_LITERAL("python"))); | 118 python_cmd->SetProgram(base::FilePath(FILE_PATH_LITERAL("python"))); |
119 #endif // defined(OS_WIN) | 119 #endif // defined(OS_WIN) |
120 // Launch python in unbuffered mode, so that python output doesn't mix with | 120 // Launch python in unbuffered mode, so that python output doesn't mix with |
121 // gtest output in buildbot log files. See http://crbug.com/147368. | 121 // gtest output in buildbot log files. See http://crbug.com/147368. |
122 python_cmd->AppendArg("-u"); | 122 python_cmd->AppendArg("-u"); |
123 // Don't generate .pyc files. This avoids future problems if upstreams for our | |
124 // bundled libraries rename more files. See http://crbug.com/356276 | |
125 python_cmd->AppendArg("-B"); | |
Ryan Sleevi
2014/03/31 19:42:14
Someone from infra should review this change - as
Peter Mayo (wrong one)
2014/04/03 21:16:30
I certainly don't want to see this (independent) c
davidben
2014/04/03 21:29:33
What are the better ways we have? It's a problem r
| |
123 | 126 |
124 return true; | 127 return true; |
125 } | 128 } |
OLD | NEW |