ldp_vpls_topo1: set an error instead of exit

It will have the same effect and code will not have to be repeated since
all functions must call `routers_have_failure()`.
This commit is contained in:
Rafael Zalamena 2017-08-22 19:22:53 -03:00 committed by Donald Sharp
parent f13a242c76
commit 333139b22e

View File

@ -146,7 +146,7 @@ def setup_module(mod):
tgen.start_router()
for router in router_list.values():
if router.has_version('<', '3'):
pytest.exit('unsupported version')
tgen.set_error('unsupported version')
def teardown_module(mod):
"Teardown the pytest environment"