packages: php-predis/run-tests.sh - randomize port

glen glen at pld-linux.org
Thu Oct 20 20:18:32 CEST 2011


Author: glen                         Date: Thu Oct 20 18:18:32 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- randomize port

---- Files affected:
packages/php-predis:
   run-tests.sh (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/php-predis/run-tests.sh
diff -u packages/php-predis/run-tests.sh:1.3 packages/php-predis/run-tests.sh:1.4
--- packages/php-predis/run-tests.sh:1.3	Thu Oct 20 20:12:33 2011
+++ packages/php-predis/run-tests.sh	Thu Oct 20 20:18:27 2011
@@ -3,7 +3,7 @@
 # Author: Elan Ruusamäe <glen at delfi.ee>
 # $Id$
 
-export REDIS_SERVER_PORT=6380
+export REDIS_SERVER_PORT=$((6380 + RANDOM % 10))
 
 cat > redis.conf <<EOF
 bind 127.0.0.1
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-predis/run-tests.sh?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list