Skip to content

Commit fa662be

Browse files
committed
tests: kdoc: fix per-file breakdown
The paths in kdoc output do not start with ../ Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 872c419 commit fa662be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/patch/kdoc/kdoc.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ if [ $current -gt $incumbent ]; then
3535
tmpfile_fo=$(mktemp)
3636
tmpfile_fn=$(mktemp)
3737

38-
grep -i "\(warn\|error\)" $tmpfile_o | sed -n 's@\(^\.\./[/a-zA-Z0-9_.-]*.[ch]\):.*@\1@p' | sort | uniq -c \
38+
grep -i "\(warn\|error\)" $tmpfile_o | sed -n 's@\(^[/a-zA-Z0-9_.-]*.[ch]\):.*@\1@p' | sort | uniq -c \
3939
> $tmpfile_fo
40-
grep -i "\(warn\|error\)" $tmpfile_n | sed -n 's@\(^\.\./[/a-zA-Z0-9_.-]*.[ch]\):.*@\1@p' | sort | uniq -c \
40+
grep -i "\(warn\|error\)" $tmpfile_n | sed -n 's@\(^[/a-zA-Z0-9_.-]*.[ch]\):.*@\1@p' | sort | uniq -c \
4141
> $tmpfile_fn
4242

4343
diff $tmpfile_fo $tmpfile_fn 1>&2

0 commit comments

Comments
 (0)