fate: Unset the sig variable if ignoring a test failure
authorMartin Storsjö <martin@martin.st>
Wed, 28 Dec 2016 22:15:17 +0000 (00:15 +0200)
committerMartin Storsjö <martin@martin.st>
Thu, 29 Dec 2016 19:50:07 +0000 (21:50 +0200)
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>
tests/fate-run.sh

index 27cd626..e1aaf64 100755 (executable)
@@ -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