Fixed problem finding createdb and psql binaries.
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 11 Mar 2008 08:37:39 +0000 (08:37 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 11 Mar 2008 08:37:39 +0000 (08:37 +0000)
tests/command/get-data-psql.sh

index 521a97f84c941c6e7a3615770b77c4f8552d66e9..7735c36b04e2138ad958413eb1ce767643cf573a 100755 (executable)
@@ -78,11 +78,12 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="create database"
-createdb  -h $TEMPDIR  -p $port $dbase > /dev/null 2> /dev/null
+$pgpath/createdb  -h $TEMPDIR  -p $port $dbase > /dev/null 2> /dev/null
+if [ $? -ne 0 ] ; then no_result ; fi
 
 
 activity="populate database"
-psql  -h $TEMPDIR -p $port  $dbase > /dev/null << EOF
+$pgpath/psql  -h $TEMPDIR -p $port  $dbase > /dev/null << EOF
 
 CREATE TABLE empty (a int, b date, c numeric(23, 4));