From dff1a610625ebe7841fca01e20ca6d86b65ee4d0 Mon Sep 17 00:00:00 2001 From: Dave Hibberd Date: Thu, 25 Sep 2025 21:58:50 +0100 Subject: New upstream version 20250912 --- tests/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/__init__.py') 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': -- cgit v1.2.3