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/conftest.py | |
parent | 9a6bc691cb0fa96d50a93e6bce60161a4fc6940d (diff) | |
download | gerbonara-6231f67139f64e71fdb0893d86ff3308572d46d8.tar.gz gerbonara-6231f67139f64e71fdb0893d86ff3308572d46d8.tar.bz2 gerbonara-6231f67139f64e71fdb0893d86ff3308572d46d8.zip |
Fix tests
Diffstat (limited to 'gerbonara/tests/conftest.py')
-rw-r--r-- | gerbonara/tests/conftest.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gerbonara/tests/conftest.py b/gerbonara/tests/conftest.py index 131ca28..b999027 100644 --- a/gerbonara/tests/conftest.py +++ b/gerbonara/tests/conftest.py @@ -3,7 +3,7 @@ from pathlib import Path import pytest -from .image_support import ImageDifference +from .image_support import ImageDifference, run_cargo_cmd def pytest_assertrepr_compare(op, left, right): if isinstance(left, ImageDifference) or isinstance(right, ImageDifference): @@ -28,3 +28,8 @@ def pytest_sessionstart(session): # on coordinator for f in chain(fail_dir.glob('*.gbr'), fail_dir.glob('*.png')): f.unlink() + + try: + run_cargo_cmd('resvg', '--help') + except FileNotFoundError: + pytest.exit('resvg binary not found, aborting test.', 2) |