From 333139b22e922d0d3a6d71db13c5810090d34041 Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Tue, 22 Aug 2017 19:22:53 -0300 Subject: [PATCH] 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()`. --- tests/topotests/ldp-vpls-topo1/test_ldp_vpls_topo1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/topotests/ldp-vpls-topo1/test_ldp_vpls_topo1.py b/tests/topotests/ldp-vpls-topo1/test_ldp_vpls_topo1.py index e6ab03a928..96e24b46b9 100755 --- a/tests/topotests/ldp-vpls-topo1/test_ldp_vpls_topo1.py +++ b/tests/topotests/ldp-vpls-topo1/test_ldp_vpls_topo1.py @@ -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" -- 2.39.5