Commit 88dbdfd1 authored by rhauck@adobe.com's avatar rhauck@adobe.com

updated w3c import script to align with the new css test repo structure as

described here: 
http://lists.w3.org/Archives/Public/public-css-testsuite/2014May/0000.html

Review URL: https://codereview.chromium.org/311673002

git-svn-id: svn://svn.chromium.org/blink/trunk@180118 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 68c943b3
......@@ -88,13 +88,6 @@ from webkitpy.w3c.test_parser import TestParser
from webkitpy.w3c.test_converter import convert_for_webkit
TEST_STATUS_UNKNOWN = 'unknown'
TEST_STATUS_APPROVED = 'approved'
TEST_STATUS_SUBMITTED = 'submitted'
VALID_TEST_STATUSES = [TEST_STATUS_APPROVED, TEST_STATUS_SUBMITTED]
CONTRIBUTOR_DIR_NAME = 'contributors'
CHANGESET_NOT_AVAILABLE = 'Not Available'
......@@ -175,7 +168,6 @@ class TestImporter(object):
self.import_in_place = (self.dir_to_import == self.destination_directory)
self.changeset = CHANGESET_NOT_AVAILABLE
self.test_status = TEST_STATUS_UNKNOWN
self.import_list = []
......@@ -203,10 +195,7 @@ class TestImporter(object):
reftests = 0
jstests = 0
# "archive" and "data" dirs are internal csswg things that live in every approved directory.
# FIXME: skip 'incoming' tests for now, but we should rework the 'test_status' concept and
# support reading them as well.
DIRS_TO_SKIP = ('.git', '.hg', 'data', 'archive', 'incoming')
DIRS_TO_SKIP = ('.git', '.hg')
if dirs:
for d in DIRS_TO_SKIP:
if d in dirs:
......@@ -411,11 +400,8 @@ class TestImporter(object):
_log.info(' %s: %s', prefixed_property, total_prefixed_properties[prefixed_property])
def setup_destination_directory(self):
""" Creates a destination directory that mirrors that of the source approved or submitted directory """
""" Creates a destination directory that mirrors that of the source directory """
self.update_test_status()
start = self.dir_to_import.find(self.test_status)
new_subpath = self.dir_to_import[len(self.top_of_repo):]
destination_directory = os.path.join(self.destination_directory, new_subpath)
......@@ -425,18 +411,6 @@ class TestImporter(object):
_log.info('Tests will be imported into: %s', destination_directory)
def update_test_status(self):
""" Sets the test status to either 'approved' or 'submitted' """
status = TEST_STATUS_UNKNOWN
directory_parts = self.dir_to_import.split(os.path.sep)
for test_status in VALID_TEST_STATUSES:
if test_status in directory_parts:
status = test_status
self.test_status = status
def remove_deleted_files(self, dir_to_import, new_file_list):
previous_file_list = []
......@@ -471,7 +445,6 @@ class TestImporter(object):
import_log.write('------------------------------------------------------------------------\n')
import_log.write('Last Import: ' + now.strftime('%Y-%m-%d %H:%M') + '\n')
import_log.write('W3C Mercurial changeset: ' + self.changeset + '\n')
import_log.write('Test status at time of import: ' + self.test_status + '\n')
import_log.write('------------------------------------------------------------------------\n')
import_log.write('Properties requiring vendor prefixes:\n')
if prop_list:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment