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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py

Issue 1997113002: W3C test importer: Skip importing files whose ref files would be too long. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't increment number of tests if we skip due to ref test length Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py
index eec089e72d90cc525ebc1a2fca1d452dd76657ee..0f31e097b0cc9b91cd1f27350462ac8c2bc60362 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_importer.py
@@ -245,11 +245,14 @@ class TestImporter(object):
if test_info is None:
continue
+ if self.path_too_long(path_full):
+ _log.warning('%s skipped due to long path. '
+ 'Max length from repo base %d chars; see http://crbug.com/609871.',
+ path_full, MAX_PATH_LENGTH)
+ continue
qyearsley 2016/05/20 21:09:46 The skipping has been moved from import_tests to f
+
if 'reference' in test_info.keys():
- reftests += 1
- total_tests += 1
test_basename = self.filesystem.basename(test_info['test'])
-
# Add the ref file, following WebKit style.
# FIXME: Ideally we'd support reading the metadata
# directly rather than relying on a naming convention.
@@ -261,6 +264,14 @@ class TestImporter(object):
# references but HTML tests.
ref_file += self.filesystem.splitext(test_info['reference'])[1]
+ if self.path_too_long(path_full.replace(filename, ref_file)):
+ _log.warning('%s skipped because path of ref file %s would be too long. '
+ 'Max length from repo base %d chars; see http://crbug.com/609871.',
+ path_full, ref_file, MAX_PATH_LENGTH)
+ continue
qyearsley 2016/05/20 21:09:46 This should skip importing in the case where the p
+
+ reftests += 1
+ total_tests += 1
copy_list.append({'src': test_info['reference'], 'dest': ref_file,
'reference_support_info': test_info['reference_support_info']})
copy_list.append({'src': test_info['test'], 'dest': filename})
@@ -335,11 +346,6 @@ class TestImporter(object):
_log.warning('%s not found. Possible error in the test.', orig_filepath)
continue
- if self.path_too_long(orig_filepath):
- _log.warning('%s skipped (longer than %d chars), to avoid hitting Windows max path length on builders (http://crbug.com/609871).',
- orig_filepath, MAX_PATH_LENGTH)
- continue
-
new_filepath = self.filesystem.join(new_path, file_to_copy['dest'])
if 'reference_support_info' in file_to_copy.keys() and file_to_copy['reference_support_info'] != {}:
reference_support_info = file_to_copy['reference_support_info']
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698