Simplified an else clause in test/run

This commit is contained in:
John Wiegley 2011-02-04 19:19:09 -05:00
parent 1719e6cd6c
commit c5352f09a4

View file

@ -36,10 +36,9 @@ elif [[ $output_only == false ]]; then
if [[ -f /tmp/expected.$$ && -f /tmp/received.$$ ]]; then
diff -w -U3 /tmp/expected.$$ /tmp/received.$$ && echo Test passed.
fi
else
if [[ -f /tmp/received.$$ ]]; then
cat /tmp/received.$$
fi
elif [[ -f /tmp/received.$$ ]]; then
cat /tmp/received.$$
fi
/bin/rm -f /tmp/expected.$$ /tmp/received.$$