diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2021-03-08 09:32:09 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-08 09:32:09 +0200 |
| commit | f79d311b3e0ea744cad115978b10bad2661afea9 (patch) | |
| tree | 4e6e1e7e976f2211616095f15077442719b4fb9a /tests/topotests/ospf_basic_functionality/test_ospf_lan.py | |
| parent | df29adc0f1b41be0d4c74eb1c5c975dbe11bda99 (diff) | |
| parent | 5cbb02ebde5deb71f9db5a23697087d79507a3f2 (diff) | |
Merge pull request #8180 from kuldeepkash/topojson_framework
tests: Improve error/assert message logging
Diffstat (limited to 'tests/topotests/ospf_basic_functionality/test_ospf_lan.py')
| -rw-r--r-- | tests/topotests/ospf_basic_functionality/test_ospf_lan.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/topotests/ospf_basic_functionality/test_ospf_lan.py b/tests/topotests/ospf_basic_functionality/test_ospf_lan.py index dac32090bc..2fbb27f4fc 100644 --- a/tests/topotests/ospf_basic_functionality/test_ospf_lan.py +++ b/tests/topotests/ospf_basic_functionality/test_ospf_lan.py @@ -397,9 +397,10 @@ def test_ospf_lan_tc1_p0(request): shutdown_bringup_interface(tgen, dut, intf, False) result = verify_ospf_neighbor(tgen, topo, dut, lan=True, expected=False) - assert result is not True, "Testcase {} : Failed \n Error: {}".format( + assert result is not True, ("Testcase {} : Failed \n " + "r0: OSPF neighbors-hip is up \n Error: {}".format( tc_name, result - ) + )) step("No Shut interface on R0") dut = "r0" |
