summaryrefslogtreecommitdiff
path: root/scripts/test/shared.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/test/shared.py')
-rw-r--r--scripts/test/shared.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/test/shared.py b/scripts/test/shared.py
index 441545db3..8fdf2375c 100644
--- a/scripts/test/shared.py
+++ b/scripts/test/shared.py
@@ -386,6 +386,7 @@ def get_tests(test_dir, extensions=[], recursive=False):
tests += glob.glob(os.path.join(test_dir, star + ext), recursive=True)
if options.test_name_filter:
tests = fnmatch.filter(tests, options.test_name_filter)
+ tests = [item for item in tests if os.path.isfile(item)]
return sorted(tests)