Attempt to fix runtests.sh again

This commit is contained in:
rocky
2020-01-14 18:51:40 -05:00
parent 5f230fa177
commit 84e9b75e78
2 changed files with 8 additions and 5 deletions

View File

@@ -33,6 +33,7 @@ SKIP_TESTS=(
[test_devpoll.py]=1 # it fails on its own
[test_dictcomps.py]=1 # Bad semantics - Investigate
[test_dis.py]=1 # We change line numbers - duh!
[test_doctest2.py]=1 # assert failure
[test_docxmlrpc.py]=1
[test_exceptions.py]=1 # parse error
[test_enumerate.py]=1 #

View File

@@ -268,11 +268,6 @@ srcdir=$(dirname $me)
cd $srcdir
fulldir=$(pwd)
# pyenv version cleaning
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}
@@ -282,6 +277,13 @@ fi
PYENV_ROOT=${PYENV_ROOT:-$HOME/.pyenv}
pyenv_local=$(pyenv local)
# pyenv version cleaning
for dir in ../ ../../ ; do
cp -v .python-version $dir
done
mkdir $TESTDIR || exit $?
cp -r ${PYENV_ROOT}/versions/${PYVERSION}.${MINOR}/lib/python${PYVERSION}/test $TESTDIR
cd $TESTDIR/test