fate: Unset the sig variable if ignoring a test failure

Otherwise the .rep file would still contain a signal instead of a
zero, even if the process returned success.

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Martin Storsjö 2016-12-29 00:15:17 +02:00
parent 35d1f726eb
commit 5c83b4d550

View File

@ -214,7 +214,7 @@ if test -e "$ref" || test $cmp = "oneline" ; then
cmperr=$?
test $err = 0 && err=$cmperr
if [ "$report_type" = "ignore" ]; then
test $err = 0 || echo "IGNORE fate-${test}" && err=0
test $err = 0 || echo "IGNORE fate-${test}" && err=0 && unset sig
else
test $err = 0 || cat $cmpfile
fi