[all-commits] [llvm/llvm-project] 9658e7: [lit] Fix internal diff newlines for -w/-b
Joel E. Denny via All-commits
all-commits at lists.llvm.org
Tue Dec 17 07:50:11 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 9658e77e27fa2a93667f840d230086d783fed6dc
https://github.com/llvm/llvm-project/commit/9658e77e27fa2a93667f840d230086d783fed6dc
Author: Joel E. Denny <jdenny.ornl at gmail.com>
Date: 2019-12-17 (Tue, 17 Dec 2019)
Changed paths:
M llvm/utils/lit/lit/builtin_commands/diff.py
A llvm/utils/lit/tests/Inputs/shtest-shell/diff-b.txt
A llvm/utils/lit/tests/Inputs/shtest-shell/diff-w.txt
M llvm/utils/lit/tests/max-failures.py
M llvm/utils/lit/tests/shtest-shell.py
Log Message:
-----------
[lit] Fix internal diff newlines for -w/-b
For example, without this patch:
```
$ python $LIT_BUILTINS/diff.py -b foo.txt bar.txt
*** /tmp/foo.txt
--- /tmp/bar.txt
***************
*** 1,2 ****
1! 2--- 1,2 ----
1! 20
```
With this patch:
```
$ python $LIT_BUILTINS/diff.py -b foo.txt bar.txt
*** /tmp/foo.txt
--- /tmp/bar.txt
***************
*** 1,2 ****
1
! 2
--- 1,2 ----
1
! 20
```
Reviewed By: rnk
Differential Revision: https://reviews.llvm.org/D71577
More information about the All-commits
mailing list