From f390374a9d3043e063a9949a3adb91763b75595b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 20 Mar 2014 09:18:59 +0100 Subject: php-pecl-redis: fix tests --- php-pecl-redis.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'php-pecl-redis.spec') diff --git a/php-pecl-redis.spec b/php-pecl-redis.spec index c412123..e1be964 100644 --- a/php-pecl-redis.spec +++ b/php-pecl-redis.spec @@ -174,7 +174,8 @@ sed -e s/testClient/SKIP_testClient/ \ # Launch redis server mkdir -p {run,log,lib}/redis -sed -e "s:/var:$PWD:" \ +sed -e "s:/^pidfile.*$:/pidfile $PWD/run/redis.pid:" \ + -e "s:/var:$PWD:" \ -e "/daemonize/s/no/yes/" \ /etc/redis.conf >redis.conf # port number to allow 32/64 build at same time @@ -200,8 +201,8 @@ ret=0 TestRedis.php || ret=1 # Cleanup -if [ -f run/redis/redis.pid ]; then - kill $(cat run/redis/redis.pid) +if [ -f run/redis.pid ]; then + kill $(cat run/redis.pid) fi exit $ret -- cgit