qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raj...@apache.org
Subject svn commit: r942187 - /qpid/trunk/qpid/java/test-profiles/start-broker
Date Fri, 07 May 2010 19:29:01 GMT
Author: rajith
Date: Fri May  7 19:29:01 2010
New Revision: 942187

URL: http://svn.apache.org/viewvc?rev=942187&view=rev
Log:
Added a timeout when checking for broker start.

Modified:
    qpid/trunk/qpid/java/test-profiles/start-broker

Modified: qpid/trunk/qpid/java/test-profiles/start-broker
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/java/test-profiles/start-broker?rev=942187&r1=942186&r2=942187&view=diff
==============================================================================
--- qpid/trunk/qpid/java/test-profiles/start-broker (original)
+++ qpid/trunk/qpid/java/test-profiles/start-broker Fri May  7 19:29:01 2010
@@ -23,7 +23,14 @@
 
 # The entire broker command is passed as an argument.
 
-waitfor() { until grep -a -l "$2" $1 >/dev/null 2>&1 ; do sleep 1 ; done ; }
+waitfor() {
+  until grep -a -l "$2" $1 >/dev/null 2>&1
+  do
+    if [ $count == 10 ]; then return; fi;
+    sleep 1 ; 
+    count=`expr $count + 1`;
+  done
+ }
 
 sh $BROKER_CMD --log-to-file /tmp/broker.log &
 waitfor /tmp/broker.log $BROKER_READY



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org


Mime
View raw message