diff options
author | jaseg <git@jaseg.de> | 2023-02-21 22:48:14 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2023-02-21 22:48:14 +0100 |
commit | 6231f67139f64e71fdb0893d86ff3308572d46d8 (patch) | |
tree | f788f0711c158c327b038f69f13975ff0fbf75ab /gerbonara/tests/image_support.py | |
parent | 9a6bc691cb0fa96d50a93e6bce60161a4fc6940d (diff) | |
download | gerbonara-6231f67139f64e71fdb0893d86ff3308572d46d8.tar.gz gerbonara-6231f67139f64e71fdb0893d86ff3308572d46d8.tar.bz2 gerbonara-6231f67139f64e71fdb0893d86ff3308572d46d8.zip |
Fix tests
Diffstat (limited to 'gerbonara/tests/image_support.py')
-rw-r--r-- | gerbonara/tests/image_support.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gerbonara/tests/image_support.py b/gerbonara/tests/image_support.py index 8941f82..862baf5 100644 --- a/gerbonara/tests/image_support.py +++ b/gerbonara/tests/image_support.py @@ -104,6 +104,7 @@ def gerbv_export(in_gbr, out_svg, export_format='svg', origin=(0, 0), size=(6, 6 cachefile = cachedir / f'{digest}.svg' if not cachefile.is_file(): + print(f'Building cache for {Path(in_gbr).name}') # NOTE: gerbv seems to always export 'clear' polarity apertures as white, irrespective of --foreground, --background # and project file color settings. # TODO: File issue upstream. @@ -138,6 +139,8 @@ def gerbv_export(in_gbr, out_svg, export_format='svg', origin=(0, 0), size=(6, 6 f'--foreground={fg}', '-o', str(cachefile), '-p', f.name] subprocess.run(cmd, check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + else: + print(f'Re-using cache for {Path(in_gbr).name}') shutil.copy(cachefile, out_svg) @contextmanager |