More test shell tweaking

This commit is contained in:
rocky
2018-03-07 08:12:34 -05:00
parent 38dffa3290
commit 908d313204
2 changed files with 9 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
#!/bin/bash
USER=${USER:-rocky}
EMAIL=${EMAIL:-rb@dustyfeet.com}
SUBJECT_PREFIX="stdlib unit testing for"
for VERSION in 2.7.14 2.6.9 ; do
typeset -i rc=0
LOGFILE=/tmp/runtests-$VERSION-$$.log
@@ -11,9 +13,9 @@ for VERSION in 2.7.14 2.6.9 ; do
fi
rc=$?
if ((rc == 0)); then
tail -v $LOGFILE | mail -s \""$VERSION ok"\" rocky@localhost
tail -v $LOGFILE | mail -s "$SUBJECT_PREFIX $VERSION ok" ${USER}@localhost
else
tail -v $LOGFILE | mail -s \""$VERSION not ok"\" rocky@localhost
tail -v $LOGFILE | mail -s \""$VERSION not ok"\" rb@dustyfeet.com
tail -v $LOGFILE | mail -s "$SUBJECT_PREFIX $VERSION not ok" ${USER}@localhost
tail -v $LOGFILE | mail -s "$SUBJECT_PREFIX $VERSION not ok" $EMAIL
fi
done