failed=
echo "Running: \"$1\"" >${log}
echo "">>${log}
- eval "$1 || failed=YES" >>${log} 2>&1
-
+ eval "$1" >>${log} 2>&1
+ status=$?
+ if [ $status != 0 ]; then
+ failed="YES";
+ fi
echo "-------------">>${log}
echo "check how the files compare with diff:">>${log}
echo "">>${log}
cat ${log}
rm ${log}
else
- echo " FAILED (test # ${testnum}).\a"
+ echo " FAILED (test # ${testnum} status=$status).\a"
fi
return 1
fi