summaryrefslogtreecommitdiff
path: root/tests/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/__init__.py')
-rw-r--r--tests/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/__init__.py b/tests/__init__.py
index b2563b8..55640b0 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -76,11 +76,12 @@ def _load_tests(loader, tests, pattern, suite=None):
images = os.environ['CHIRP_TESTIMG'].split()
else:
images = glob.glob("tests/images/*.img")
+ images = [os.path.basename(img) for img in images]
tests = [os.path.splitext(os.path.basename(img))[0] for img in images]
base = os.path.dirname(os.path.abspath(__file__))
base = os.path.join(base, 'images')
- images = glob.glob(os.path.join(base, "*"))
+ images = [os.path.join(base, img) for img in images]
tests = {img: os.path.splitext(os.path.basename(img))[0] for img in images}
if pattern == 'test*.py':