Skip to content

Commit

Permalink
enable Oracle test on CI (#41460)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 10, 2021
1 parent 7edd999 commit c228204
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 27 deletions.
2 changes: 0 additions & 2 deletions .ci/test_blocklist.txt
Expand Up @@ -23,7 +23,5 @@ qgis_layerdefinition
# MSSQL requires the MSSQL docker
PyQgsProviderConnectionMssql

# Oracle image is temporarily disabled in the Github Actions builds
PyQgsOracleProvider


49 changes: 24 additions & 25 deletions .docker/docker-qgis-test.sh
Expand Up @@ -57,31 +57,30 @@ popd > /dev/null # /root/QGIS
# Restore Oracle test data
##############################

# echo "${bold}Load Oracle database...🙏${endbold}"
#
# export ORACLE_HOST="oracle"
# export QGIS_ORACLETEST_DBNAME="${ORACLE_HOST}/XEPDB1"
# export QGIS_ORACLETEST_DB="host=${QGIS_ORACLETEST_DBNAME} port=1521 user='QGIS' password='qgis'"
#
# echo "Wait a moment while loading Oracle database."
# COUNT=0
# while ! echo exit | sqlplus -L SYSTEM/adminpass@$QGIS_ORACLETEST_DBNAME &> /dev/null
# do
# printf "🙏"
# sleep 5
# if [[ $(( COUNT++ )) -eq 200 ]]; then
# break
# fi
# done
# if [[ ${COUNT} -eq 201 ]]; then
# echo "timeout, no oracle, no 🙏"
# else
# echo " done 👀"
# pushd /root/QGIS > /dev/null
# /root/QGIS/tests/testdata/provider/testdata_oracle.sh $ORACLE_HOST
# popd > /dev/null # /root/QGIS
# fi
# this is proving very flaky:
echo "${bold}Load Oracle database...🙏${endbold}"

export ORACLE_HOST="oracle"
export QGIS_ORACLETEST_DBNAME="${ORACLE_HOST}/XEPDB1"
export QGIS_ORACLETEST_DB="host=${QGIS_ORACLETEST_DBNAME} port=1521 user='QGIS' password='qgis'"

echo "Wait a moment while loading Oracle database."
COUNT=0
while ! echo exit | sqlplus -L SYSTEM/adminpass@$QGIS_ORACLETEST_DBNAME &> /dev/null
do
printf "🙏"
sleep 5
if [[ $(( COUNT++ )) -eq 200 ]]; then
break
fi
done
if [[ ${COUNT} -eq 201 ]]; then
echo "timeout, no oracle, no 🙏"
else
echo " done 👀"
pushd /root/QGIS > /dev/null
/root/QGIS/tests/testdata/provider/testdata_oracle.sh $ORACLE_HOST
popd > /dev/null # /root/QGIS
fi

##############################
# Restore SQL Server test data
Expand Down

0 comments on commit c228204

Please sign in to comment.