未验证 提交 3ddd5b65 编写于 作者: C Cleber Rosa

Merge remote-tracking branch 'cacarrara/minor-refactor-list'

Signed-off-by: NCleber Rosa <crosa@redhat.com>
......@@ -674,15 +674,13 @@ class FileLoader(TestLoader):
for dirpath, dirs, filenames in os.walk(reference, onerror=onerror):
dirs.sort()
for file_name in sorted(filenames):
if not file_name.startswith('.'):
for suffix in ignore_suffix:
if file_name.endswith(suffix):
break
else:
pth = os.path.join(dirpath, file_name)
tests.extend(self._make_tests(pth,
which_tests == DiscoverMode.ALL,
subtests_filter))
if file_name.startswith('.') or file_name.endswith(ignore_suffix):
continue
pth = os.path.join(dirpath, file_name)
tests.extend(self._make_tests(pth,
which_tests == DiscoverMode.ALL,
subtests_filter))
return tests
def _find_python_unittests(self, test_path, disabled, subtests_filter):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册