Skip to content

Commit

Permalink
build_*: Produce unified diff with zero context
Browse files Browse the repository at this point in the history
Add the "-U 0" option to diff for improved readability, but without the
massive additional context associated with "-u".

Signed-off-by: Kees Cook <[email protected]>
  • Loading branch information
kees authored and kuba-moo committed Aug 19, 2021
1 parent 1122852 commit 17c785b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/patch/build_32bit/build_32bit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if [ $current -gt $incumbent ]; then
grep -i "\(warn\|error\)" $tmpfile_n | sed -n 's@\(^\.\./[/a-zA-Z0-9_.-]*.[ch]\):.*@\1@p' | sort | uniq -c \
> $tmpfile_fn

diff $tmpfile_fo $tmpfile_fn 1>&2
diff -U 0 $tmpfile_fo $tmpfile_fn 1>&2
rm $tmpfile_fo $tmpfile_fn

rc=1
Expand Down
2 changes: 1 addition & 1 deletion tests/patch/build_allmodconfig_warn/build_allmodconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ if [ $current -gt $incumbent ]; then
grep -i "\(warn\|error\)" $tmpfile_n | sed -n 's@\(^\.\./[/a-zA-Z0-9_.-]*.[ch]\):.*@\1@p' | sort | uniq -c \
> $tmpfile_fn

diff $tmpfile_fo $tmpfile_fn 1>&2
diff -U 0 $tmpfile_fo $tmpfile_fn 1>&2
rm $tmpfile_fo $tmpfile_fn

rc=1
Expand Down

0 comments on commit 17c785b

Please sign in to comment.