diff options
author | Moshe <moshehoa@amdocs.com> | 2018-07-04 09:10:44 +0300 |
---|---|---|
committer | Moshe Hoadley <moshehoa@amdocs.com> | 2018-07-12 07:11:09 +0000 |
commit | fc9a8346809137810f9c85a232191d4edb7c9fb3 (patch) | |
tree | 70f637c2269a10a1840f1ea3319cbc1e6f84f4ab /vnftest/core | |
parent | d9784d158cbdb1d46b14b9ae00436ce0ab7d4ed2 (diff) |
resources are located by logical path
Issue-ID: VNFSDK-275
Change-Id: I2a8a5430634d5a12a58fbd5cd85511ccce53518a
Signed-off-by: Moshe <moshehoa@amdocs.com>
fix tests
Issue-ID: VNFSDK-275
Change-Id: I20f48139b2cae3b57959a33739f34e811c2ffe38
Signed-off-by: Moshe <moshehoa@amdocs.com>
Diffstat (limited to 'vnftest/core')
-rw-r--r-- | vnftest/core/testcase.py | 4 |
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 |