Skip to content

Commit d191ef1

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

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/dump/run.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ 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 && 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
48+
createdb test_load && PAGER='' psql -c '\df pg_get_object_address' test_load || die 5 'crap'
49+
(echo 'BEGIN;' && pg_dump test_dump && echo 'COMMIT;') | psql -q -v VERBOSITY=verbose -v ON_ERROR_STOP=true test_load > $restore_log
4950
rc=$?
50-
if [ $rc ne 0 ]; then
51+
if [ $rc -ne 0 ]; then
5152
cat $restore_log
5253
die 4 "Unable to load database"
5354
fi

0 commit comments

Comments
 (0)