Fix garbled diff output in clang test tool.
The function splitlines consumes the trailing newlines so the resulting diff lines are printed in a single line and the diff is not readable. This CL implements the recommendation from the difflib library, which is to use readlines and writelines for a correct diff output: * https://docs.python.org/3/library/difflib.html#difflib.unified_diff Change-Id: I88b9bf1a1ff8f4c1f75c9cb1aca82e209f72abdf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2139699 Commit-Queue: Jose Lopes <jabolopes@google.com> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#757801}
Showing
Please register or sign in to comment