Files
python-uncompyle6/test/stdlib/run-and-email.sh
2018-03-07 06:12:24 -05:00

14 lines
409 B
Bash
Executable File

#!/usr/bin/bash
EMAIL=${EMAIL:-rb@dustyfeet.com}
for VERSION in 2.7.14 2.6.9 ; do
LOGFILE=/tmp/runtests-$VERSION-$$.log
./runtests.sh >$LOGFILE 2>&1
rc=$?
if ((rc == 0)); then
tail -v $LOGFILE | mail -s \""$VERSION ok"\" rocky@localhost
else
tail -v $LOGFILE | mail -s \""$VERSION not ok"\" rocky@localhost
tail -v $LOGFILE | mail -s \""$VERSION not ok"\" rb@dustyfeet.com
fi
done