summaryrefslogtreecommitdiffstats
path: root/vnftest/core/testsuite.py
diff options
context:
space:
mode:
Diffstat (limited to 'vnftest/core/testsuite.py')
-rw-r--r--vnftest/core/testsuite.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/vnftest/core/testsuite.py b/vnftest/core/testsuite.py
index 986982a..9c58886 100644
--- a/vnftest/core/testsuite.py
+++ b/vnftest/core/testsuite.py
@@ -18,6 +18,8 @@
from __future__ import absolute_import
from __future__ import print_function
+import fnmatch
+
import os
import logging
@@ -41,7 +43,7 @@ class Testsuite(object):
def _get_testsuite_file_list(self):
try:
- testsuite_files = sorted(os.listdir(consts.TESTSUITE_DIR))
+ testsuite_files = sorted(fnmatch.filter(os.listdir(consts.TESTSUITE_DIR), '*.yaml'))
except OSError:
LOG.exception('Failed to list dir:\n%s\n', consts.TESTSUITE_DIR)
raise