mirror of
https://git.proxmox.com/git/mirror_frr
synced 2026-01-28 06:43:29 +00:00
topogen: don't backtrace when topogen is not used
This allows old tests to be run with '--topology-only' without generating tons of error messages, instead it will just stop the test without trying anything else.
This commit is contained in:
parent
b06e9eff75
commit
8833a8387f
7
tests/topotests/conftest.py
Normal file → Executable file
7
tests/topotests/conftest.py
Normal file → Executable file
@ -21,6 +21,9 @@ def pytest_runtest_call():
|
||||
# pylint: disable=E1101
|
||||
# Trust me, 'config' exists.
|
||||
if pytest.config.getoption('--topology-only'):
|
||||
# Allow user to play with the setup.
|
||||
get_topogen().mininet_cli()
|
||||
tgen = get_topogen()
|
||||
if tgen is not None:
|
||||
# Allow user to play with the setup.
|
||||
tgen.mininet_cli()
|
||||
|
||||
pytest.exit('the topology executed successfully')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user