Don't hide errors during db preparation

This commit is contained in:
Sandro Santilli 2012-07-24 09:45:08 +02:00
parent ae493dd914
commit 13b3b2f2ff
2 changed files with 2 additions and 2 deletions

View File

@ -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}

View File

@ -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