Commit e3c29529 authored by Guido van Rossum's avatar Guido van Rossum

Only run diff if the test program terminated normally, with exit

status 0.
parent ccbcb7cc
......@@ -19,12 +19,16 @@ do
out=` echo $test | sed 's,/[^/0-9]*\([0-9]*\).xml,/out\1.xml,' `
tmp=$TMPDIR/taltest$$`basename $test`
./driver.py $flags $test >$tmp
if cmp -s $tmp $out
then
echo $test OK
else
echo "$test failed -- diff (expected vs. actual) follows"
diff $out $tmp
fi
case $? in
0) if cmp -s $tmp $out
then
echo $test OK
else
echo "$test failed -- diff (expected vs. actual) follows"
diff $out $tmp
fi
;;
*) echo $test exit status $?;;
esac
rm $tmp
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment