mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 05:30:00 -04:00
Merge branch 'mnowak/make-cocci-parallel-v9_18' into 'v9_18'
[v9_18] Run spatch jobs in parallel See merge request isc-projects/bind9!5832
This commit is contained in:
commit
588c60208e
1 changed files with 8 additions and 1 deletions
|
|
@ -15,7 +15,12 @@ ret=0
|
|||
for spatch in cocci/*.spatch; do
|
||||
patch="$(dirname "$spatch")/$(basename "$spatch" .spatch).patch"
|
||||
: > "$patch"
|
||||
spatch --sp-file "$spatch" --use-gitgrep --dir "." --very-quiet --include-headers "$@" >> "$patch";
|
||||
echo "Applying semantic patch $spatch..."
|
||||
spatch --jobs "${TEST_PARALLEL_JOBS:-1}" --sp-file "$spatch" --use-gitgrep --dir "." --very-quiet --include-headers "$@" >> "$patch" 2> cocci.stderr
|
||||
cat cocci.stderr
|
||||
if grep -q -e "parse error" cocci.stderr; then
|
||||
ret=1
|
||||
fi
|
||||
if [ "$(< "$patch" wc -l)" -gt "0" ]; then
|
||||
cat "$patch"
|
||||
ret=1
|
||||
|
|
@ -24,4 +29,6 @@ for spatch in cocci/*.spatch; do
|
|||
fi
|
||||
done
|
||||
|
||||
rm -f cocci.stderr
|
||||
|
||||
exit $ret
|
||||
|
|
|
|||
Loading…
Reference in a new issue