diff --git a/clap-tests/run_tests.py b/clap-tests/run_tests.py index 280b78dd897..c0eeb81437c 100755 --- a/clap-tests/run_tests.py +++ b/clap-tests/run_tests.py @@ -2,6 +2,7 @@ import sys import subprocess import re +import difflib failed = False @@ -293,6 +294,9 @@ def pass_fail(name, cmd, check, good): return 0 print('Fail') print('\n\n{}\n# Should be:\n$ {}\n{}\n\n{}\n# But is:\n$ {}\n{}\n\n'.format('#'*25, cmd, good, '#'*25, cmd, check)) + for line in difflib.context_diff(good.splitlines(), check.splitlines(), fromfile="Should Be", tofile="Currently Is", lineterm=""): + print(line) + print() return 1