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

Unified Diff: webkit/tools/layout_tests/PRESUBMIT.py

Issue 10501010: Update layout_tests tool in media/tools and PRESUBMIT.py per test_expectations.txt renames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/tools/layout_tests/test_expectations_history.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/layout_tests/PRESUBMIT.py
diff --git a/webkit/tools/layout_tests/PRESUBMIT.py b/webkit/tools/layout_tests/PRESUBMIT.py
index 0e89a6f8e99ff7b0f6c62f6effd41be095103cdc..6e911e7d1864a91f7a6eed77f649c0bb97a298e9 100644
--- a/webkit/tools/layout_tests/PRESUBMIT.py
+++ b/webkit/tools/layout_tests/PRESUBMIT.py
@@ -8,7 +8,7 @@ See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
details on the presubmit API built into gcl.
"""
-TEST_EXPECTATIONS = 'test_expectations.txt'
+TEST_EXPECTATIONS_FILENAMES = ['test_expectations.txt', 'TestExpectations']
def LintTestFiles(input_api, output_api):
current_dir = str(input_api.PresubmitLocalPath())
@@ -45,7 +45,7 @@ def LintTestFiles(input_api, output_api):
def LintTestExpectations(input_api, output_api):
for path in input_api.LocalPaths():
- if TEST_EXPECTATIONS == input_api.os_path.basename(path):
+ if input_api.os_path.basename(path) in TEST_EXPECTATIONS_FILENAMES:
return LintTestFiles(input_api, output_api)
return []
« no previous file with comments | « media/tools/layout_tests/test_expectations_history.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698