diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-09-25 21:58:50 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-09-25 21:58:50 +0100 |
| commit | dff1a610625ebe7841fca01e20ca6d86b65ee4d0 (patch) | |
| tree | 97c0482e33cbbd110ac648db8a32ea8e09638134 /tests/__init__.py | |
| parent | f6b2e6e7159906b8b3204dca3a9e58e42c36ccbb (diff) | |
New upstream version 20250912upstream/20250912
Diffstat (limited to 'tests/__init__.py')
| -rw-r--r-- | tests/__init__.py | 3 |
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': |
