summaryrefslogtreecommitdiffstats
path: root/webkit/tools/layout_tests/layout_package/path_utils.py
diff options
context:
space:
mode:
authorpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-09 13:10:58 +0000
committerpinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-09 13:10:58 +0000
commit84cf76334d4175b3673d88bdbe431ee604face96 (patch)
tree77d651c8e271023c2612ca7fac819288cea39e20 /webkit/tools/layout_tests/layout_package/path_utils.py
parent02b5d70b745ae19dd1990086034def0ba64846e5 (diff)
downloadchromium_src-84cf76334d4175b3673d88bdbe431ee604face96.zip
chromium_src-84cf76334d4175b3673d88bdbe431ee604face96.tar.gz
chromium_src-84cf76334d4175b3673d88bdbe431ee604face96.tar.bz2
Changes to get the layout test harness running on mac.
Review URL: http://codereview.chromium.org/5614 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3095 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/layout_tests/layout_package/path_utils.py')
-rw-r--r--webkit/tools/layout_tests/layout_package/path_utils.py18
1 files changed, 8 insertions, 10 deletions
diff --git a/webkit/tools/layout_tests/layout_package/path_utils.py b/webkit/tools/layout_tests/layout_package/path_utils.py
index 05fe8fd..d7316ce 100644
--- a/webkit/tools/layout_tests/layout_package/path_utils.py
+++ b/webkit/tools/layout_tests/layout_package/path_utils.py
@@ -7,6 +7,7 @@
import errno
import os
+import platform_utils
import subprocess
import sys
@@ -128,20 +129,17 @@ def ExpectedFilename(filename, suffix, custom_result_id):
# Failed to find the results anywhere, return default path anyway
return os.path.join(results_dirs[0], results_filename)
-def TestShellBinary():
- """Returns the name of the test_shell executable."""
- return 'test_shell.exe'
-
def TestShellBinaryPath(target):
"""Gets the full path to the test_shell binary for the target build
configuration. Raises PathNotFound if the file doesn't exist"""
- full_path = os.path.join(WebKitRoot(), target, TestShellBinary())
+ platform_util = platform_utils.PlatformUtility('')
+ full_path = os.path.join(WebKitRoot(), target,
+ platform_util.TestShellBinary())
+ if not os.path.exists(full_path):
+ # try output directory from either Xcode or chrome.sln
+ full_path = platform_util.TestShellBinaryPath(target)
if not os.path.exists(full_path):
- # try chrome's output directory in case test_shell was built by chrome.sln
- full_path = google.path_utils.FindUpward(WebKitRoot(), 'chrome', target,
- TestShellBinary())
- if not os.path.exists(full_path):
- raise PathNotFound('unable to find test_shell at %s' % full_path)
+ raise PathNotFound('unable to find test_shell at %s' % full_path)
return full_path
def RelativeTestFilename(filename):