]> git.proxmox.com Git - mirror_frr.git/commitdiff
Merge pull request #9104 from idryzhov/topotest-multiline
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Jul 2021 15:22:26 +0000 (11:22 -0400)
committerGitHub <noreply@github.com>
Wed, 28 Jul 2021 15:22:26 +0000 (11:22 -0400)
tests: fix invalid multiline format

tests/topotests/bgp_basic_functionality_topo1/test_bgp_basic_functionality.py

index 485a76c6b2e279c0c86afb1015b449ea75cdde15..4753c49397fc82fa01e851edf968ccda7967918a 100644 (file)
@@ -1135,9 +1135,9 @@ def test_bgp_with_loopback_with_same_subnet_p1(request):
     protocol = "bgp"
     for addr_type in ADDR_TYPES:
         result = verify_fib_routes(tgen, addr_type, dut, input_dict_r1)
-        assert result is not True, "Testcase {} : Failed \n".format(tc_name)
+        assert result is not True, "Testcase {} : Failed \n"
         "Expected behavior: routes should not present in fib \n"
-        "Error: {}".format(result)
+        "Error: {}".format(tc_name, result)
 
     step("Verify Ipv4 and Ipv6 network installed in r3 RIB but not in FIB")
     input_dict_r3 = {
@@ -1152,9 +1152,9 @@ def test_bgp_with_loopback_with_same_subnet_p1(request):
     protocol = "bgp"
     for addr_type in ADDR_TYPES:
         result = verify_fib_routes(tgen, addr_type, dut, input_dict_r1)
-        assert result is not True, "Testcase {} : Failed \n".format(tc_name)
+        assert result is not True, "Testcase {} : Failed \n"
         "Expected behavior: routes should not present in fib \n"
-        "Error: {}".format(result)
+        "Error: {}".format(tc_name, result)
 
     write_test_footer(tc_name)