Skip to content

Commit

Permalink
contest: cocci: fix per-file breakdown
Browse files Browse the repository at this point in the history
The code was copy/pasted from build tests but the tempfile
in cocci is called out_* not tmpfile_*.

Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
kuba-moo committed Mar 9, 2024
1 parent 22cd22a commit b73217a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contest/tests/cocci-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ if [ $rc -ne 0 ]; then
tmpfile_fo=$(mktemp)
tmpfile_fn=$(mktemp)

grep -i "^$PWD" $tmpfile_o | sed -n 's@\(^\.\./[/a-zA-Z0-9_.-]*.[ch]\):.*@\1@p' | sort | uniq -c \
grep -i "^$PWD" $out_of | sed -n 's@\(^\.\./[/a-zA-Z0-9_.-]*.[ch]\):.*@\1@p' | sort | uniq -c \
> $tmpfile_fo
grep -i "^$PWD" $tmpfile_n | sed -n 's@\(^\.\./[/a-zA-Z0-9_.-]*.[ch]\):.*@\1@p' | sort | uniq -c \
grep -i "^$PWD" $out_nf | sed -n 's@\(^\.\./[/a-zA-Z0-9_.-]*.[ch]\):.*@\1@p' | sort | uniq -c \
> $tmpfile_fn

diff -U 0 $tmpfile_fo $tmpfile_fn 1>&2
Expand Down

0 comments on commit b73217a

Please sign in to comment.