diff options
| author | Donald Sharp <donaldsharp72@gmail.com> | 2022-09-07 12:59:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-07 12:59:26 -0400 |
| commit | 97a0bfc5ca3eed2fc43ff566417ed6a4260f27c5 (patch) | |
| tree | 12aa6612bc8e5846e729758203d477c85ed05563 /tests | |
| parent | 27e8358522be87e00a6aaee9f2d56ac7e2c173a1 (diff) | |
| parent | 3d80bd11aa107c8630f9ef8a1635aab23af7d72d (diff) | |
Merge pull request #11915 from opensourcerouting/topotests-collect
topotests: ignore env for pytest --collect-only
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/topotests/conftest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/topotests/conftest.py b/tests/topotests/conftest.py index f79ca71a64..2a57f6c26e 100755 --- a/tests/topotests/conftest.py +++ b/tests/topotests/conftest.py @@ -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"] = "" |
