From 41abbd16c0c0af5e17904506b7b0a71fd33cec66 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 1 Sep 2012 11:08:59 +0200 Subject: php-redis: select server port for tests --- php-redis.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/php-redis.spec b/php-redis.spec index e02a8f9..e8955f1 100644 --- a/php-redis.spec +++ b/php-redis.spec @@ -134,6 +134,13 @@ cd nts/tests # Launch redis server mkdir -p {run,log,lib}/redis sed -s "s:/var:$PWD:" /etc/redis.conf >redis.conf +%if 0%{?__isa_bits} +# port number to allow 32/64 build at same time +# and avoid conflict with a possible running server +port=$(expr %{__isa_bits} + 6350) +sed -e "s/6379/$port/" -i redis.conf +sed -e "s/6379/$port/" -i TestRedis.php +%endif %{_sbindir}/redis-server ./redis.conf & srv=$! -- cgit