diff options
author | jaseg <git@jaseg.de> | 2024-11-06 14:49:36 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2024-11-06 14:49:36 +0100 |
commit | 1a854b1812400867117584f6bbde7bd1c75bb118 (patch) | |
tree | 15618edcd42340cf40ccc80bba0ae8dc3e4a058a /gerbonara/tests/conftest.py | |
parent | 091ee84910bdd6e30988ee7c9061b6d474f588db (diff) | |
download | gerbonara-1a854b1812400867117584f6bbde7bd1c75bb118.tar.gz gerbonara-1a854b1812400867117584f6bbde7bd1c75bb118.tar.bz2 gerbonara-1a854b1812400867117584f6bbde7bd1c75bb118.zip |
Tests: Make kicad docker image configurable
Diffstat (limited to 'gerbonara/tests/conftest.py')
-rw-r--r-- | gerbonara/tests/conftest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gerbonara/tests/conftest.py b/gerbonara/tests/conftest.py index 242ec04..40cf756 100644 --- a/gerbonara/tests/conftest.py +++ b/gerbonara/tests/conftest.py @@ -8,7 +8,7 @@ from itertools import chain import pytest -from .image_support import ImageDifference, run_cargo_cmd, bulk_populate_kicad_fp_export_cache +from .image_support import ImageDifference, run_cargo_cmd, bulk_populate_kicad_fp_export_cache, KICAD_CONTAINER def pytest_assertrepr_compare(op, left, right): if isinstance(left, ImageDifference) or isinstance(right, ImageDifference): @@ -56,7 +56,7 @@ def pytest_configure(config): raise ValueError(f'Path "{lib_dir}" given by KICAD_FOOTPRINTS environment variable does not exist or is not a directory.') print('Updating podman image') - subprocess.run(['podman', 'pull', 'registry.hub.docker.com/kicad/kicad:nightly'], check=True) + subprocess.run(['podman', 'pull', KICAD_CONTAINER], check=True) print('Checking and bulk re-building KiCad footprint library cache') with multiprocessing.pool.ThreadPool() as pool: # use thread pool here since we're only monitoring podman processes |