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

Side by Side Diff: Tools/Scripts/webkitpy/w3c/test_importer.py

Issue 1220543007: Import web-platform-tests/webstorage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase, allow window opening Created 5 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 1 # Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions 4 # modification, are permitted provided that the following conditions
5 # are met: 5 # are met:
6 # 6 #
7 # 1. Redistributions of source code must retain the above 7 # 1. Redistributions of source code must retain the above
8 # copyright notice, this list of conditions and the following 8 # copyright notice, this list of conditions and the following
9 # disclaimer. 9 # disclaimer.
10 # 2. Redistributions in binary form must reproduce the above 10 # 2. Redistributions in binary form must reproduce the above
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 total_tests = 0 195 total_tests = 0
196 reftests = 0 196 reftests = 0
197 jstests = 0 197 jstests = 0
198 198
199 # Files in 'tools' are not for browser testing (e.g., a script for g enerating test files). 199 # Files in 'tools' are not for browser testing (e.g., a script for g enerating test files).
200 # http://testthewebforward.org/docs/test-format-guidelines.html#tool s 200 # http://testthewebforward.org/docs/test-format-guidelines.html#tool s
201 DIRS_TO_SKIP = ('.git', '.hg', 'test-plan', 'tools') 201 DIRS_TO_SKIP = ('.git', '.hg', 'test-plan', 'tools')
202 202
203 # Need to copy all files in 'support', including HTML without meta d ata. 203 # Need to copy all files in 'support', including HTML without meta d ata.
204 # http://testthewebforward.org/docs/test-format-guidelines.html#supp ort-files 204 # http://testthewebforward.org/docs/test-format-guidelines.html#supp ort-files
205 DIRS_TO_INCLUDE = ('resources', 'support') 205 DIRS_TO_INCLUDE = ('resources', 'support', 'iframe')
jsbell 2015/07/01 22:33:15 Still hoping the rename PR is accepted. I won't la
206 206
207 if dirs: 207 if dirs:
208 for d in DIRS_TO_SKIP: 208 for d in DIRS_TO_SKIP:
209 if d in dirs: 209 if d in dirs:
210 dirs.remove(d) 210 dirs.remove(d)
211 211
212 for path in paths_to_skip: 212 for path in paths_to_skip:
213 path_base = path.replace(self.options.destination + '/', '') 213 path_base = path.replace(self.options.destination + '/', '')
214 path_base = path_base.replace(cur_dir, '') 214 path_base = path_base.replace(cur_dir, '')
215 path_full = self.filesystem.join(root, path_base) 215 path_full = self.filesystem.join(root, path_base)
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 """ Creates a destination directory that mirrors that of the source dire ctory """ 407 """ Creates a destination directory that mirrors that of the source dire ctory """
408 408
409 new_subpath = self.dir_to_import[len(self.top_of_repo):] 409 new_subpath = self.dir_to_import[len(self.top_of_repo):]
410 410
411 destination_directory = os.path.join(self.destination_directory, new_sub path) 411 destination_directory = os.path.join(self.destination_directory, new_sub path)
412 412
413 if not os.path.exists(destination_directory): 413 if not os.path.exists(destination_directory):
414 os.makedirs(destination_directory) 414 os.makedirs(destination_directory)
415 415
416 _log.info('Tests will be imported into: %s', destination_directory) 416 _log.info('Tests will be imported into: %s', destination_directory)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698