done
fi
- SHOULDFAIL=0
+ FAIL=0
for reason in $skipreasons $context
do
- if [ -e $a/failing.$reason ]
+ if [ -e $a/fail.$reason ]
then
- SHOULDFAIL=1
+ FAIL=1
break
fi
done
diff ${diffopts} $expected $a/real_result > $a/diff 2>&1
if [ -s $a/diff ]
then
- if [ $SHOULDFAIL = 0 ]
+ if [ $FAIL = 0 ]
then
result=" Failed test $a"
echo $testname >> failed_tests
passed=$[$passed+1]
fi
else
- if [ $SHOULDFAIL = 0 ]
+ if [ $FAIL = 0 ]
then
result=" Passed test $a"
echo $testname >> passed_tests