mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 20:26:36 +00:00
topotests: ignore env for pytest --collect-only
`--collect-only` does not run any tests, so bypass env checks for it. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This commit is contained in:
parent
dd57a2c78e
commit
3d80bd11aa
@ -232,6 +232,9 @@ def pytest_configure(config):
|
||||
Assert that the environment is correctly configured, and get extra config.
|
||||
"""
|
||||
|
||||
if config.getoption("--collect-only"):
|
||||
return
|
||||
|
||||
if "PYTEST_XDIST_WORKER" not in os.environ:
|
||||
os.environ["PYTEST_XDIST_MODE"] = config.getoption("dist", "no")
|
||||
os.environ["PYTEST_TOPOTEST_WORKER"] = ""
|
||||
|
Loading…
Reference in New Issue
Block a user