From f447b12571049da91e726d2bb20e30eff07bac46 Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 8 Jul 2024 16:29:10 +0200 Subject: tests: Fix compatibility with recent kicad nightly containers --- gerbonara/tests/image_support.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gerbonara') diff --git a/gerbonara/tests/image_support.py b/gerbonara/tests/image_support.py index b1b0f59..c5ebee4 100644 --- a/gerbonara/tests/image_support.py +++ b/gerbonara/tests/image_support.py @@ -160,7 +160,10 @@ def kicad_fp_export(mod_file, out_svg): os.chmod(tmpdir, 0o1777) pretty_dir = mod_file.parent fp_name = mod_file.name[:-len('.kicad_mod')] - cmd = ['podman', 'run', '--mount', f'type=bind,src={pretty_dir},dst=/{pretty_dir.name}', + cmd = ['podman', 'run', + '--rm', # Clean up volumes after exit + '--userns=keep-id', # To allow container to read from bind mount + '--mount', f'type=bind,src={pretty_dir},dst=/{pretty_dir.name}', '--mount', f'type=bind,src={tmpdir},dst=/out', 'registry.hub.docker.com/kicad/kicad:nightly', 'kicad-cli', 'fp', 'export', 'svg', '--output', '/out', '--footprint', fp_name, f'/{pretty_dir.name}'] -- cgit