Skip to content

Commit

Permalink
contest: cocci: ignore str_*() helpers
Browse files Browse the repository at this point in the history
We don't care about the use of str_on_off() and such in networking.

Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
kuba-moo committed Oct 30, 2024
1 parent f08356b commit c16fc8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contest/tests/cocci-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ clean_up_output() {
# remove the command lines
sed -i '/^\/usr\/local\/bin\/spatch -D report /d' $file

# ignore the str helpers like str_on_off(), we don't care
sed -i '/: opportunity for str_/d' $file

# if files are removed or added cocci will fail in pre- or post- run
sed -i '/^EXN: .*No such file or directory/d' $file
sed -i '/^EXN: Coccinelle_modules.Common.Timeout /d' $file
Expand Down

0 comments on commit c16fc8e

Please sign in to comment.