Skip to content

Commit a0bee74

Browse files
Jim NasbyJim Nasby
authored andcommitted
More travis debug
1 parent bce84cf commit a0bee74

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

test/dump/run.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ check_log $create_log creation
4545

4646
echo Running dump and restore
4747
# No real need to cat the log on failure here; psql will generate an error and even if not verify will almost certainly catch it
48-
createdb test_load && (echo '\df pg_getobject_address' && echo 'BEGIN;' && pg_dump test_dump && echo 'COMMIT;') | psql -q -v VERBOSITY=verbose -v ON_ERROR_STOP=true test_load > $restore_log || die 4 "Unable to load database"
48+
createdb test_load && psql -c '\df pg_getobject_address' test_load && (echo 'BEGIN;' && pg_dump test_dump && echo 'COMMIT;') | psql -q -v VERBOSITY=verbose -v ON_ERROR_STOP=true test_load > $restore_log
49+
rc=$?
50+
if [ $rc ne 0 ]; then
51+
cat $restore_log
52+
die 4 "Unable to load database"
53+
fi
4954

5055
echo Verifying restore
5156
psql -f test/dump/verify.sql test_load > $verify_log || die 5 "Test failed"

0 commit comments

Comments
 (0)