commit c26be026ba789daaf77f19bc651e35f3be6e654c
parent 05c5d50f1e594d64876beecba29602057166193c
Author: Florian Dold <florian@dold.me>
Date: Tue, 25 Nov 2025 22:05:31 +0100
fix test subcommand
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/packaging/ng/taler-pkg b/packaging/ng/taler-pkg
@@ -288,8 +288,9 @@ def show_published(cfg):
def test(cfg):
- distro = cfg.distro
- vendor, codename = distro.split("-", 1)
+ target = cfg.distro
+ vendor, codename, *rest = target.split("-")
+ distro = f"{vendor}-{codename}"
image_tag = f"localhost/taler-packaging-{distro}:latest"
dockerfile = f"distros/{distro}.Dockerfile"
cachedir = Path(f"cache").absolute()
@@ -320,7 +321,7 @@ def test(cfg):
"--mount",
f"type=bind,source={mydir}/testing,target=/testing,readonly",
image_tag,
- "/testing/test-${distro}",
+ f"/testing/test-{target}",
]
subprocess.run(
cmd,