gerbolyze/tests/conftest.py
jaseg 48ecde4698 Move gerbolyze module to pyproject.toml/uv-build
...and hopefully fix tests for current gerbonara.
2026-03-10 21:17:55 +01:00

12 lines
309 B
Python

import os
import subprocess
from pathlib import Path
def pytest_sessionstart(session):
if 'PYTEST_XDIST_WORKER' in os.environ: # only run this on the controller
return
# Rebuild svg-flatten
subprocess.run(['make', '-C', Path(__file__).parent.parent / 'svg-flatten', '-j'], check=True)