From: David Lamparter Date: Wed, 9 Aug 2017 17:08:50 +0000 (+0200) Subject: topotests: change from "context" to "unified" diff X-Git-Tag: frr-7.1-dev~151^2~237 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=91733ef85e0fb78866f477317d9079317c0d2925;p=mirror%2Ffrr.git topotests: change from "context" to "unified" diff context diff: *** before.py --- diff --git a/tests/topotests/lib/topotest.py b/tests/topotests/lib/topotest.py index cabcc9a753..255839cf14 100644 --- a/tests/topotests/lib/topotest.py +++ b/tests/topotests/lib/topotest.py @@ -201,7 +201,7 @@ def pid_exists(pid): def get_textdiff(text1, text2, title1="", title2=""): "Returns empty string if same or formatted diff" - diff = '\n'.join(difflib.context_diff(text1, text2, + diff = '\n'.join(difflib.unified_diff(text1, text2, fromfile=title1, tofile=title2)) # Clean up line endings diff = os.linesep.join([s for s in diff.splitlines() if s])