mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 14:17:20 +00:00
bgp_multiview_topo1: Change from unified to context diff for better readability
This commit is contained in:
parent
2bdcdbd1b8
commit
3b6bac2adf
@ -421,7 +421,9 @@ def test_bgp_routingTable():
|
|||||||
actual = ('\n'.join(actual.splitlines()) + '\n').splitlines(1)
|
actual = ('\n'.join(actual.splitlines()) + '\n').splitlines(1)
|
||||||
|
|
||||||
# Generate Diff
|
# Generate Diff
|
||||||
diff = ''.join(difflib.unified_diff(actual, expected))
|
diff = ''.join(difflib.context_diff(actual, expected,
|
||||||
|
fromfile="actual BGP routing table",
|
||||||
|
tofile="expected BGP routing table"))
|
||||||
# Empty string if it matches, otherwise diff contains unified diff
|
# Empty string if it matches, otherwise diff contains unified diff
|
||||||
|
|
||||||
if diff:
|
if diff:
|
||||||
|
Loading…
Reference in New Issue
Block a user