Skip to content

Commit 1d80c34

Browse files
committed
tests: cocci: support local sed filters
Let the user add local filters. We commonly have to extend the list of false positives to let patch series thru. If the list is in the main file we have to modify NIPA, and we have to be careful not to do it while script is running, because bash. So source in a local file if COCCI_EXTRA_CLEAN is set to it. Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 8264d9a commit 1d80c34

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contest/tests/cocci-check.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ clean_up_output() {
3131
sed -i '/^EXN: Coccinelle_modules.Common.Timeout /d' $file
3232
sed -i '/An error occurred when attempting /d' $file
3333
sed -i '/mlx5_ifc.h:.* WARNING use flexible-array member instead/d' $file
34+
35+
# allow user to add local user "sed filters" without modifying the test
36+
[ -f "$COCCI_EXTRA_CLEAN" ] && source COCCI_EXTRA_CLEAN
3437
}
3538

3639
# Figure out the number of physical cores, save 8 or half for other stuff

0 commit comments

Comments
 (0)