]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgp_multiview_topo1: Change from unified to context diff for better readability
authorMartin Winter <mwinter@netdef.org>
Sun, 27 Nov 2016 01:36:07 +0000 (17:36 -0800)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 28 Nov 2018 01:22:11 +0000 (20:22 -0500)
tests/topotests/bgp_multiview_topo1/test_bgp_multiview_topo1.py

index 3f8523e9971f169b7def43233701e6489dfd8d09..b0834336d72bd5dd02ef96a7bee40b8e47ae4287 100755 (executable)
@@ -421,7 +421,9 @@ def test_bgp_routingTable():
                 actual = ('\n'.join(actual.splitlines()) + '\n').splitlines(1)
 
             # 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
 
             if diff: