summaryrefslogtreecommitdiffstats
path: root/webkit/tools
diff options
context:
space:
mode:
authorvictorw@chromium.org <victorw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 21:16:56 +0000
committervictorw@chromium.org <victorw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-13 21:16:56 +0000
commit5e96b65b0470d18a169f4d9eacc8784d1fcfeb6d (patch)
treec0a27a2d68f8befb9e8284cfeb436f72e5007bea /webkit/tools
parent97023ed4479530970d6c75ad2d2f86bda47d10d0 (diff)
downloadchromium_src-5e96b65b0470d18a169f4d9eacc8784d1fcfeb6d.zip
chromium_src-5e96b65b0470d18a169f4d9eacc8784d1fcfeb6d.tar.gz
chromium_src-5e96b65b0470d18a169f4d9eacc8784d1fcfeb6d.tar.bz2
Change the path search order of LayoutTests.
First check whether third_party/WebKit/LayoutTests exists, if so, use this one. Otherwise, fallback to webkit/data/layout_tests/LayoutTests TEST=run_webkit_tests BUG=none Review URL: http://codereview.chromium.org/149566 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20531 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools')
-rw-r--r--webkit/tools/layout_tests/layout_package/path_utils.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/webkit/tools/layout_tests/layout_package/path_utils.py b/webkit/tools/layout_tests/layout_package/path_utils.py
index dcff738..a15048c 100644
--- a/webkit/tools/layout_tests/layout_package/path_utils.py
+++ b/webkit/tools/layout_tests/layout_package/path_utils.py
@@ -65,11 +65,13 @@ def LayoutTestsDir(path = None):
if _layout_tests_dir:
return _layout_tests_dir
- if os.path.exists(os.path.join(LayoutDataDir(), 'LayoutTests')):
- _layout_tests_dir = LayoutDataDir()
+ webkit_dir = google.path_utils.FindUpward(
+ google.path_utils.ScriptDir(), 'third_party', 'WebKit')
+
+ if os.path.exists(os.path.join(webkit_dir, 'LayoutTests')):
+ _layout_tests_dir = webkit_dir
else:
- _layout_tests_dir = google.path_utils.FindUpward(
- google.path_utils.ScriptDir(), 'third_party', 'WebKit')
+ _layout_tests_dir = LayoutDataDir()
return _layout_tests_dir