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

Side by Side Diff: webkit/tools/layout_tests/layout_package/platform_utils_linux.py

Issue 57051: Revert r12849 (conversion of "Hammer" names to "Debug"). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/valgrind/valgrind.sh ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 signal 10 import signal
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 os.kill(server_process.pid, signal.SIGTERM) 154 os.kill(server_process.pid, signal.SIGTERM)
155 155
156 def WDiffExecutablePath(self): 156 def WDiffExecutablePath(self):
157 """Path to the WDiff executable, which we assume is already installed and 157 """Path to the WDiff executable, which we assume is already installed and
158 in the user's $PATH. 158 in the user's $PATH.
159 """ 159 """
160 return 'wdiff' 160 return 'wdiff'
161 161
162 def ImageCompareExecutablePath(self, target): 162 def ImageCompareExecutablePath(self, target):
163 """Path to the image_diff binary.""" 163 """Path to the image_diff binary."""
164 return PathFromBase('sconsbuild', target, 'image_diff') 164 # See mmoss TODO below.
165 return PathFromBase('chrome', 'Hammer', 'image_diff')
165 166
166 def TestShellBinary(self): 167 def TestShellBinary(self):
167 """The name of the binary for TestShell.""" 168 """The name of the binary for TestShell."""
168 return 'test_shell' 169 return 'test_shell'
169 170
170 def TestShellBinaryPath(self, target): 171 def TestShellBinaryPath(self, target):
171 """Return the platform-specific binary path for our TestShell. 172 """Return the platform-specific binary path for our TestShell.
172 173
173 Args: 174 Args:
174 target: Build target mode (debug or release) 175 target: Build target mode (debug or release)
175 """ 176 """
176 return PathFromBase('sconsbuild', target, self.TestShellBinary()) 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
179 # multiple debug/release targets).
180 try:
181 path = PathFromBase('webkit', 'Hammer', self.TestShellBinary())
182 except google.path_utils.PathNotFound:
183 path = PathFromBase('chrome', 'Hammer', self.TestShellBinary())
184 return path
177 185
178 def FuzzyMatchBinaryPath(self): 186 def FuzzyMatchBinaryPath(self):
179 """Return the path to the fuzzy matcher binary.""" 187 """Return the path to the fuzzy matcher binary."""
180 return PathFromBase('third_party', 'fuzzymatch', 'fuzzymatch') 188 return PathFromBase('third_party', 'fuzzymatch', 'fuzzymatch')
181 189
182 def TestListPlatformDir(self): 190 def TestListPlatformDir(self):
183 """Return the platform-specific directory for where the test lists live""" 191 """Return the platform-specific directory for where the test lists live"""
184 return 'linux' 192 return 'linux'
185 193
186 def PlatformDir(self): 194 def PlatformDir(self):
187 """Returns the most specific directory name where platform-specific 195 """Returns the most specific directory name where platform-specific
188 results live. 196 results live.
189 """ 197 """
190 return 'chromium-linux' 198 return 'chromium-linux'
OLDNEW
« no previous file with comments | « tools/valgrind/valgrind.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698