diff --git a/Sanity/basic-functions-check/runtest.sh b/Sanity/basic-functions-check/runtest.sh index 94e07e2..23888b2 100755 --- a/Sanity/basic-functions-check/runtest.sh +++ b/Sanity/basic-functions-check/runtest.sh @@ -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