| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2008 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2008 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Platform-specific utility methods shared by several scripts.""" | 6 """Platform-specific utility methods shared by several scripts.""" |
| 7 | 7 |
| 8 import os | 8 import os |
| 9 import re | 9 import re |
| 10 import subprocess | 10 import subprocess |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 """Return the platform-specific binary path for our TestShell. | 172 """Return the platform-specific binary path for our TestShell. |
| 173 | 173 |
| 174 Args: | 174 Args: |
| 175 target: Build target mode (debug or release) | 175 target: Build target mode (debug or release) |
| 176 """ | 176 """ |
| 177 # TODO(mmoss) - hard-coded to "Hammer" for now until I look into the scons | 177 # TODO(mmoss) - hard-coded to "Hammer" for now until I look into the scons |
| 178 # output directory logic (and how/if it will change once Linux supports | 178 # output directory logic (and how/if it will change once Linux supports |
| 179 # multiple debug/release targets). | 179 # multiple debug/release targets). |
| 180 return PathFromBase('chrome', 'Hammer', self.TestShellBinary()) | 180 return PathFromBase('chrome', 'Hammer', self.TestShellBinary()) |
| 181 | 181 |
| 182 def FuzzyMatchBinaryPath(self): |
| 183 """Return the path to the fuzzy matcher binary.""" |
| 184 return PathFromBase('third_party', 'fuzzymatch', 'fuzzymatch') |
| 185 |
| 182 def TestListPlatformDir(self): | 186 def TestListPlatformDir(self): |
| 183 """Return the platform-specific directory for where the test lists live""" | 187 """Return the platform-specific directory for where the test lists live""" |
| 184 return 'linux' | 188 return 'linux' |
| 185 | 189 |
| 186 def PlatformDir(self): | 190 def PlatformDir(self): |
| 187 """Returns the most specific directory name where platform-specific | 191 """Returns the most specific directory name where platform-specific |
| 188 results live. | 192 results live. |
| 189 """ | 193 """ |
| 190 return 'chromium-linux' | 194 return 'chromium-linux' |
| OLD | NEW |