| 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 <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // which can cause flakiness.) | 109 // which can cause flakiness.) |
| 110 python_cmd->SetProgram(base::FilePath(g_python_path.Get().path_)); | 110 python_cmd->SetProgram(base::FilePath(g_python_path.Get().path_)); |
| 111 #else | 111 #else |
| 112 python_cmd->SetProgram(base::FilePath(FILE_PATH_LITERAL("python"))); | 112 python_cmd->SetProgram(base::FilePath(FILE_PATH_LITERAL("python"))); |
| 113 #endif | 113 #endif |
| 114 | 114 |
| 115 // Launch python in unbuffered mode, so that python output doesn't mix with | 115 // Launch python in unbuffered mode, so that python output doesn't mix with |
| 116 // gtest output in buildbot log files. See http://crbug.com/147368. | 116 // gtest output in buildbot log files. See http://crbug.com/147368. |
| 117 python_cmd->AppendArg("-u"); | 117 python_cmd->AppendArg("-u"); |
| 118 | 118 |
| 119 // Prevent using system-installed libraries. Use hermetic versioned copies. |
| 120 python_cmd->AppendArg("-S"); |
| 121 |
| 119 return true; | 122 return true; |
| 120 } | 123 } |
| OLD | NEW |