From: Marko Kreen Date: Tue, 29 May 2012 20:11:10 +0000 (+0300) Subject: test.sh: force /tmp as unix socket dir X-Git-Tag: pgbouncer_1_5_2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0022594dab2b05d29fa40c4ba9d097571163e615;p=pgbouncer test.sh: force /tmp as unix socket dir This allows to surive pgsql that defaults somewhere else. Also change default path. --- diff --git a/test/test.sh b/test/test.sh index f48681f..3cc0e8c 100755 --- a/test/test.sh +++ b/test/test.sh @@ -5,7 +5,7 @@ # - uses nc (netcat) with some tests, skips if not in path # - assumes postgres 8.2 fix your path so that it comes first -export PATH=/usr/lib/postgresql/8.2/bin:$PATH +export PATH=/usr/lib/postgresql/8.4/bin:$PATH export PGDATA=$PWD/pgdata export PGHOST=localhost export PGPORT=6667 @@ -34,7 +34,8 @@ rm -f $BOUNCER_LOG $PG_LOG if [ ! -d $PGDATA ]; then mkdir $PGDATA - initdb >/dev/null 2>&1 + initdb >> $PG_LOG 2>&1 + sed -i "/unix_socket_directory/s:.*unix_socket_directory.*:unix_socket_directory = '/tmp':" pgdata/postgresql.conf fi pgctl start