summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authordpranke@google.com <dpranke@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-26 00:32:04 +0000
committerdpranke@google.com <dpranke@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-26 00:32:04 +0000
commit5bbf2884b6ff9466d95e3c6f177ebb7a39b70268 (patch)
tree65775a710b8336793d3717e35ffa17d5b6828cf2 /webkit
parente56b4ab871e7b34736223e75ed966a613f236a6e (diff)
downloadchromium_src-5bbf2884b6ff9466d95e3c6f177ebb7a39b70268.zip
chromium_src-5bbf2884b6ff9466d95e3c6f177ebb7a39b70268.tar.gz
chromium_src-5bbf2884b6ff9466d95e3c6f177ebb7a39b70268.tar.bz2
fix run_webkit_tests --new-baseline to specify the PlatformName() dir.
BUG=none TEST=none R=dglaskov@chromium.org Review URL: http://codereview.chromium.org/174373 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24383 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/layout_tests/layout_package/path_utils.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/webkit/tools/layout_tests/layout_package/path_utils.py b/webkit/tools/layout_tests/layout_package/path_utils.py
index 43db161..f2c0090 100644
--- a/webkit/tools/layout_tests/layout_package/path_utils.py
+++ b/webkit/tools/layout_tests/layout_package/path_utils.py
@@ -35,9 +35,12 @@ def LayoutTestsDir(path=None):
else:
return PathFromBase('third_party', 'WebKit');
-def ChromiumBaselinePath(platform):
+def ChromiumBaselinePath(platform=None):
"""Returns the full path to the directory containing expected
- baseline results from chromium ports."""
+ baseline results from chromium ports. If |platform| is None, the
+ currently executing platform is used."""
+ if platform is None:
+ platform = platform_utils.PlatformName()
return PathFromBase('webkit', 'data', 'layout_tests', 'platform', platform)
def WebKitBaselinePath(platform):