You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Runtests tweak
This commit is contained in:
@@ -38,12 +38,11 @@ MAIN="runtests.sh"
|
|||||||
|
|
||||||
USER=${USER:-rocky}
|
USER=${USER:-rocky}
|
||||||
EMAIL=${EMAIL:-rb@dustyfeet.com}
|
EMAIL=${EMAIL:-rb@dustyfeet.com}
|
||||||
WHAT="uncompyle3 ${MAIN}"
|
WHAT="uncompyle6 ${MAIN}"
|
||||||
export BATCH=1
|
export BATCH=1
|
||||||
|
|
||||||
typeset -i RUN_STARTTIME=$(date +%s)
|
typeset -i RUN_STARTTIME=$(date +%s)
|
||||||
|
|
||||||
actual_versions=""
|
|
||||||
DEBUG="" # -x
|
DEBUG="" # -x
|
||||||
|
|
||||||
MAILBODY=/tmp/${MAIN}-mailbody-$$.txt
|
MAILBODY=/tmp/${MAIN}-mailbody-$$.txt
|
||||||
@@ -57,7 +56,6 @@ for VERSION in $PYVERSIONS ; do
|
|||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
actual_versions="$actual_versions $VERSION"
|
|
||||||
|
|
||||||
if ! pyenv local $VERSION ; then
|
if ! pyenv local $VERSION ; then
|
||||||
rc=1
|
rc=1
|
||||||
@@ -90,4 +88,5 @@ typeset -i RUN_ENDTIME=$(date +%s)
|
|||||||
(( time_diff = RUN_ENDTIME - RUN_STARTTIME))
|
(( time_diff = RUN_ENDTIME - RUN_STARTTIME))
|
||||||
elapsed_time=$(displaytime $time_diff)
|
elapsed_time=$(displaytime $time_diff)
|
||||||
echo "${WHAT} complete; ${elapsed_time}." >> $MAILBODY
|
echo "${WHAT} complete; ${elapsed_time}." >> $MAILBODY
|
||||||
|
echo "Full results are in ${LOGFILE}." >> $MAILBODY
|
||||||
cat $MAILBODY | mail -s "$HOST $WHAT $elapsed_time" ${EMAIL}
|
cat $MAILBODY | mail -s "$HOST $WHAT $elapsed_time" ${EMAIL}
|
||||||
|
Reference in New Issue
Block a user