Don't hide errors during db preparation
This commit is contained in:
parent
ae493dd914
commit
13b3b2f2ff
@ -31,7 +31,7 @@ die() {
|
||||
}
|
||||
|
||||
echo "preparing postgres..."
|
||||
dropdb ${TEST_DB} 2> /dev/null # error expected if doesn't exist
|
||||
dropdb ${TEST_DB} # 2> /dev/null # error expected if doesn't exist, but not otherwise
|
||||
createdb -Ttemplate_postgis -EUTF8 ${TEST_DB} || die "Could not create test database"
|
||||
psql -f test.sql ${TEST_DB}
|
||||
|
||||
|
@ -28,7 +28,7 @@ echo "port ${REDIS_PORT}" | redis-server - > test/test.log &
|
||||
PID_REDIS=$!
|
||||
|
||||
echo "Preparing the environment"
|
||||
cd test; sh prepare_db.sh >> test.log || die "database preparation failure (see test.log)"; cd -;
|
||||
cd test; sh prepare_db.sh || die "database preparation failure"; cd -;
|
||||
|
||||
PATH=node_modules/.bin/:$PATH
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user