Start older-python testing

This commit is contained in:
rocky
2020-02-10 18:24:33 -05:00
parent c62daaf0b7
commit bd0fdd0002

View File

@@ -14,7 +14,24 @@ function displaytime {
printf '%d seconds\n' $S
}
. ../../admin-tools/pyenv-newer-versions
bs=${BASH_SOURCE[0]}
if [[ $0 != $bs ]] ; then
echo "This script should not be *sourced* but run through bash"
exit 1
fi
mydir=$(dirname $bs)
chdir $mydir
branch=$(cat ../../.git/HEAD | cut -d'/' -f 3)
if [[ $branch == 'python-2.4' ]]; then
. ../../admin-tools/pyenv-older-versions
elif [[ $branch == 'master' ]]; then
. ../../admin-tools/pyenv-newer-versions
else
echo &1>2 "Error git branch should either be 'master' or 'python-2.4'; got: '$branch'"
exit 1
fi
USER=${USER:-rocky}
EMAIL=${EMAIL:-rb@dustyfeet.com}