You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
Make runtests.sh more version robust
This commit is contained in:
@@ -21,7 +21,6 @@ function displaytime {
|
||||
printf '%d seconds\n' $S
|
||||
}
|
||||
|
||||
# Python version setup
|
||||
FULLVERSION=$(pyenv local)
|
||||
PYVERSION=${FULLVERSION%.*}
|
||||
MINOR=${FULLVERSION##?.?.}
|
||||
@@ -313,6 +312,11 @@ srcdir=$(dirname $me)
|
||||
cd $srcdir
|
||||
fulldir=$(pwd)
|
||||
|
||||
# Python version setup
|
||||
for dir in .. ../.. ; do
|
||||
(cd $dir && [[ -r .python-version ]] && rm -v .python-version )
|
||||
done
|
||||
|
||||
# DECOMPILER=uncompyle2
|
||||
DECOMPILER=${DECOMPILER:-"$fulldir/../../bin/uncompyle6"}
|
||||
TESTDIR=/tmp/test${PYVERSION}
|
||||
@@ -398,4 +402,5 @@ typeset -i ALL_FILES_ENDTIME=$(date +%s)
|
||||
printf "Ran $i unit-test files in "
|
||||
displaytime $time_diff
|
||||
echo "Skipped $skipped test for known failures."
|
||||
cd $fulldir/../.. && pyenv local $FULLVERSION
|
||||
exit $allerrs
|
||||
|
Reference in New Issue
Block a user