mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Make mach consider ignored dirs
Address indentation changes
This commit is contained in:
parent
573c0a7468
commit
28312d0e17
3 changed files with 13 additions and 2 deletions
|
@ -113,6 +113,16 @@ class CheckTidiness(unittest.TestCase):
|
|||
self.assertEqual(msg, errors.next()[2])
|
||||
self.assertNoMoreErrors(errors)
|
||||
|
||||
def test_file_list(self):
|
||||
base_path='./python/tidy/servo_tidy_tests/test_ignored'
|
||||
file_list = tidy.get_file_list(base_path, only_changed_files=False,
|
||||
exclude_dirs=[])
|
||||
lst = list(file_list)
|
||||
self.assertEqual([os.path.join(base_path, 'whee', 'test.rs')], lst)
|
||||
file_list = tidy.get_file_list(base_path, only_changed_files=False,
|
||||
exclude_dirs=[os.path.join(base_path,'whee')])
|
||||
lst = list(file_list)
|
||||
self.assertEqual([], lst)
|
||||
|
||||
def do_tests():
|
||||
suite = unittest.TestLoader().loadTestsFromTestCase(CheckTidiness)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue