mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 07:42:07 -04:00
Run spatch jobs in parallel
Also make the script more verbose to identify which patch is being processed and check for failures in spatch standard error output.
This commit is contained in:
parent
fcc9ac7bd8
commit
48c44fe6d4
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