summaryrefslogtreecommitdiffstats
path: root/vnftest/core/testcase.py
diff options
context:
space:
mode:
Diffstat (limited to 'vnftest/core/testcase.py')
-rw-r--r--vnftest/core/testcase.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/vnftest/core/testcase.py b/vnftest/core/testcase.py
index ea07243..2cb22ec 100644
--- a/vnftest/core/testcase.py
+++ b/vnftest/core/testcase.py
@@ -18,6 +18,8 @@
from __future__ import absolute_import
from __future__ import print_function
+import fnmatch
+
import os
import logging
@@ -44,7 +46,7 @@ class Testcase(object):
def _get_testcase_file_list(self):
try:
- testcase_files = sorted(os.listdir(consts.TESTCASE_DIR))
+ testcase_files = sorted(fnmatch.filter(os.listdir(consts.TESTCASE_DIR), '*.yaml'))
except OSError:
LOG.exception('Failed to list dir:\n%s\n', consts.TESTCASE_DIR)
raise