Skip to content

Commit

Permalink
Merge pull request #33980 from m-kuhn/travis_db_debug
Browse files Browse the repository at this point in the history
Add test output to postgres database startup
  • Loading branch information
m-kuhn committed Jan 22, 2020
2 parents 4a38d4d + b4eebfc commit b7980f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .ci/travis/linux/scripts/docker-qgis-test.sh
Expand Up @@ -26,7 +26,9 @@ done
echo " done 🥩"

pushd /root/QGIS > /dev/null
echo "Restoring postgres test data ..."
/root/QGIS/tests/testdata/provider/testdata_pg.sh
echo "Postgres test data restored ..."
popd > /dev/null # /root/QGIS

##############################
Expand Down
1 change: 1 addition & 0 deletions tests/testdata/provider/testdata_pg.sh
Expand Up @@ -19,6 +19,7 @@ SCRIPTS="
dropdb --if-exists $DB
createdb $DB -E UTF8 -T template0 || exit 1
for f in ${SCRIPTS}; do
echo "Restoring $f"
psql -q --echo-errors -c "SET client_min_messages TO WARNING;" -f $f $DB -v ON_ERROR_STOP=1 || exit 1
done

Expand Down

0 comments on commit b7980f0

Please sign in to comment.