From 6231f67139f64e71fdb0893d86ff3308572d46d8 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 21 Feb 2023 22:48:14 +0100 Subject: Fix tests --- gerbonara/tests/conftest.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'gerbonara/tests/conftest.py') 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) -- cgit