| OLD | NEW |
| 1 # Copyright (C) 2010 Google Inc. All rights reserved. | 1 # Copyright (C) 2010 Google Inc. 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 are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 | 679 |
| 680 suites = self.virtual_test_suites() | 680 suites = self.virtual_test_suites() |
| 681 if paths: | 681 if paths: |
| 682 tests.extend(self._virtual_tests_matching_paths(paths, suites)) | 682 tests.extend(self._virtual_tests_matching_paths(paths, suites)) |
| 683 else: | 683 else: |
| 684 tests.extend(self._all_virtual_tests(suites)) | 684 tests.extend(self._all_virtual_tests(suites)) |
| 685 return tests | 685 return tests |
| 686 | 686 |
| 687 def real_tests(self, paths): | 687 def real_tests(self, paths): |
| 688 # When collecting test cases, skip these directories. | 688 # When collecting test cases, skip these directories. |
| 689 skipped_directories = set(['.svn', '_svn', 'platform', 'resources', 'sup
port', 'script-tests', 'reference', 'reftest']) | 689 skipped_directories = set(['platform', 'resources', 'support', 'script-t
ests', 'reference', 'reftest']) |
| 690 files = find_files.find(self._filesystem, self.layout_tests_dir(), paths
, | 690 files = find_files.find(self._filesystem, self.layout_tests_dir(), paths
, |
| 691 skipped_directories, functools.partial(Port.is_t
est_file, self), self.test_key) | 691 skipped_directories, functools.partial(Port.is_t
est_file, self), self.test_key) |
| 692 return self._convert_wpt_file_paths_to_url_paths([self.relative_test_fil
ename(f) for f in files]) | 692 return self._convert_wpt_file_paths_to_url_paths([self.relative_test_fil
ename(f) for f in files]) |
| 693 | 693 |
| 694 @staticmethod | 694 @staticmethod |
| 695 # If any changes are made here be sure to update the isUsedInReftest method
in old-run-webkit-tests as well. | 695 # If any changes are made here be sure to update the isUsedInReftest method
in old-run-webkit-tests as well. |
| 696 def is_reference_html_file(filesystem, dirname, filename): | 696 def is_reference_html_file(filesystem, dirname, filename): |
| 697 if filename.startswith('ref-') or filename.startswith('notref-'): | 697 if filename.startswith('ref-') or filename.startswith('notref-'): |
| 698 return True | 698 return True |
| 699 filename_without_ext, _ = filesystem.splitext(filename) | 699 filename_without_ext, _ = filesystem.splitext(filename) |
| (...skipping 919 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1619 | 1619 |
| 1620 def __init__(self, base, args, reference_args=None): | 1620 def __init__(self, base, args, reference_args=None): |
| 1621 self.name = base | 1621 self.name = base |
| 1622 self.base = base | 1622 self.base = base |
| 1623 self.args = args | 1623 self.args = args |
| 1624 self.reference_args = args if reference_args is None else reference_args | 1624 self.reference_args = args if reference_args is None else reference_args |
| 1625 self.tests = set() | 1625 self.tests = set() |
| 1626 | 1626 |
| 1627 def __repr__(self): | 1627 def __repr__(self): |
| 1628 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) | 1628 return "PhysicalTestSuite('%s', '%s', %s, %s)" % (self.name, self.base,
self.args, self.reference_args) |
| OLD | NEW |