tests: Fix compatibility with recent kicad nightly containers
This commit is contained in:
parent
93fd764482
commit
f447b12571
1 changed files with 4 additions and 1 deletions
|
|
@ -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}']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue