From fc9a8346809137810f9c85a232191d4edb7c9fb3 Mon Sep 17 00:00:00 2001 From: Moshe Date: Wed, 4 Jul 2018 09:10:44 +0300 Subject: resources are located by logical path Issue-ID: VNFSDK-275 Change-Id: I2a8a5430634d5a12a58fbd5cd85511ccce53518a Signed-off-by: Moshe fix tests Issue-ID: VNFSDK-275 Change-Id: I20f48139b2cae3b57959a33739f34e811c2ffe38 Signed-off-by: Moshe --- vnftest/core/testcase.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vnftest/core') 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 -- cgit 1.2.3-korg