summaryrefslogtreecommitdiff
path: root/tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py')
-rw-r--r--tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py b/tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py
index 2da1dcd21a..c5230d6614 100644
--- a/tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py
+++ b/tests/topotests/ospf_basic_functionality/test_ospf_ecmp_lan.py
@@ -307,9 +307,10 @@ def test_ospf_lan_ecmp_tc18_p0(request):
result = verify_ospf_rib(
tgen, dut, input_dict, next_hop=nh, attempts=5, expected=False
)
- assert result is not True, "Testcase {} : Failed \n Error: {}".format(
+ assert result is not True, ("Testcase {} : Failed \n "
+ "r1: OSPF routes are present \n Error: {}".format(
tc_name, result
- )
+ ))
protocol = "ospf"
result = verify_rib(
@@ -322,9 +323,10 @@ def test_ospf_lan_ecmp_tc18_p0(request):
attempts=5,
expected=False,
)
- assert result is not True, "Testcase {} : Failed \n Error: {}".format(
+ assert result is not True, ("Testcase {} : Failed \n "
+ "r1: routes are still present \n Error: {}".format(
tc_name, result
- )
+ ))
write_test_footer(tc_name)