Make python version pick less depended on what is installed

This commit is contained in:
Honza Horak 2020-12-08 14:35:20 +01:00
commit da56c8ea66

View file

@ -48,12 +48,16 @@ sqlUser() {
rlRun "echo \"$SQLUSER_Q\" | mysql -u $TESTUSER -p$TESTPASS $TESTDB" $EXIT_CODE
}
for p in python3 python2 /usr/libexec/platform-python; do
if command -v $p; then
export PYTHON=$p
break
fi
done
if rlIsRHEL "<8" ; then
PYTHON=python2
else
for p in python3 python2 /usr/libexec/platform-python; do
if command -v $p; then
export PYTHON=$p
break
fi
done
fi
rlJournalStart
rlPhaseStartSetup