summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2022-09-07 12:59:26 -0400
committerGitHub <noreply@github.com>2022-09-07 12:59:26 -0400
commit97a0bfc5ca3eed2fc43ff566417ed6a4260f27c5 (patch)
tree12aa6612bc8e5846e729758203d477c85ed05563 /tests
parent27e8358522be87e00a6aaee9f2d56ac7e2c173a1 (diff)
parent3d80bd11aa107c8630f9ef8a1635aab23af7d72d (diff)
Merge pull request #11915 from opensourcerouting/topotests-collect
topotests: ignore env for pytest --collect-only
Diffstat (limited to 'tests')
-rwxr-xr-xtests/topotests/conftest.py3
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"] = ""