Skip to content
Permalink
Browse files

Restore test script committed by mistake

  • Loading branch information
elpaso committed Mar 18, 2021
1 parent a584380 commit 450b8d7d50c7bbf438fca99ab7b213bde4102e4f
Showing with 25 additions and 1 deletion.
  1. +25 −1 .docker/docker-qgis-test.sh
@@ -62,6 +62,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 comment has been minimized.

Copy link
@3nids

3nids Mar 18, 2021

Member

@elpaso restoring the oracle DB setup is an error?

This comment has been minimized.

Copy link
@elpaso

elpaso via email Mar 18, 2021

Author Contributor

##############################
# Restore SQL Server test data
@@ -104,5 +128,5 @@ else
echo "Flaky tests are run!"
fi
echo "List of skipped tests: $EXCLUDE_TESTS"
python3 /root/QGIS/.ci/ctest2ci.py xvfb-run ctest -R 'PyQgsServerWMSGetMap$' -V -E "${EXCLUDE_TESTS}" -S /root/QGIS/.ci/config.ctest --output-on-failure
python3 /root/QGIS/.ci/ctest2ci.py xvfb-run ctest -V -E "${EXCLUDE_TESTS}" -S /root/QGIS/.ci/config.ctest --output-on-failure

0 comments on commit 450b8d7

Please sign in to comment.