diff --git a/test/run-and-email.sh b/test/run-and-email.sh index f76e78b0..b97d5dc6 100755 --- a/test/run-and-email.sh +++ b/test/run-and-email.sh @@ -79,8 +79,10 @@ for VERSION in $PYVERSIONS ; do SUBJECT_PREFIX="pyenv weak verify (max $MAX_TESTS) for" if ((rc == 0)); then + actual_versions="$actual_versions ok;" tail -v $LOGFILE | mail -s "$SUBJECT_PREFIX $VERSION ok" ${USER}@localhost else + actual_versions="$actual_versions failed;" tail -v $LOGFILE | mail -s "$SUBJECT_PREFIX $VERSION not ok" ${USER}@localhost tail -v $LOGFILE | mail -s "$HOST $SUBJECT_PREFIX $VERSION not ok" ${EMAIL} fi diff --git a/test/stdlib/run-and-email.sh b/test/stdlib/run-and-email.sh index 21cf2627..bdc77f70 100755 --- a/test/stdlib/run-and-email.sh +++ b/test/stdlib/run-and-email.sh @@ -59,11 +59,20 @@ for VERSION in $PYVERSIONS ; do else STOP_ONERROR=1 /bin/bash $DEBUG ./runtests.sh >$LOGFILE 2>&1 rc=$? + + echo Python Version $(pyenv local) >> $LOGFILE + echo "" >>$LOGFILE + typeset -i ALL_FILES_ENDTIME=$(date +%s) + (( time_diff = ALL_FILES_ENDTIME - ALL_FILES_STARTTIME)) + displaytime $time_diff >> $LOGFILE fi + SUBJECT_PREFIX="runtests verify for" if ((rc == 0)); then + actual_versions="$actual_versions ok;" tail -v $LOGFILE | mail -s "$SUBJECT_PREFIX $VERSION ok" ${USER}@localhost else + actual_versions="$actual_versions failed;" tail -v $LOGFILE | mail -s "$SUBJECT_PREFIX $VERSION not ok" ${USER}@localhost tail -v $LOGFILE | mail -s "$HOST $SUBJECT_PREFIX $VERSION not ok" $EMAIL fi