summaryrefslogtreecommitdiff
path: root/tests/__init__.py
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-09-25 21:58:56 +0100
committerDave Hibberd <hibby@debian.org>2025-09-25 21:58:56 +0100
commitdac10dc785be43f7e63bdd44f05a1dbe2d04609a (patch)
tree23b4327e2743c99a4b121b3339df17e46f824948 /tests/__init__.py
parent6a03e85ae98f0298eec0d6208bb5947a311ef5c8 (diff)
parentdff1a610625ebe7841fca01e20ca6d86b65ee4d0 (diff)
Update upstream source from tag 'upstream/20250912'
Update to upstream version '20250912' with Debian dir a3c0b1107566c4f30b2235d61176fafab2a65647
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':