Fixed catching unnececcary exceptions
Exception Abort can't be thrown, so it is useless.
Catching SystemExit and KeyboardInterrupt makes little sense as the thread can
be terminated by KeyboardInterrupt before or after entering the wrapped command
processing function. So one have to handle these exceptions in his main function
anyway.
Catching any exception in order to print a message and re-raise it changes the
standard behaviour and might seem confusing.
#!/bin/sh
BASE=$(dirname $0)/..
STDOUT=$BASE/tests/tmp.out
STDERR=$BASE/tests/tmp.err
for f in `ls .`; do
if [ -x "$f" -a $f != "runtests" ]; then
echo ---------------- $f
PYTHONPATH=$BASE $BASE/tests/$f >$STDOUT 2>$STDERR
diff -N $BASE/tests/$f.out $STDOUT
diff -N $BASE/tests/$f.err $STDERR
fi
done
rm -f $STDOUT
rm -f $STDERR