From: Jiří Filipovič Date: Fri, 21 May 2010 13:54:00 +0000 (+0000) Subject: fixed lb-test-notif-switch test X-Git-Tag: glite-security-gsoap-plugin_R_2_1_2_1~32 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=a01d37a0b3289bced306f5d537ea4824e63c8c0a;p=jra1mw.git fixed lb-test-notif-switch test --- diff --git a/org.glite.testsuites.ctb/LB/tests/lb-test-notif-switch.sh b/org.glite.testsuites.ctb/LB/tests/lb-test-notif-switch.sh index 018c8b6..0416f9d 100755 --- a/org.glite.testsuites.ctb/LB/tests/lb-test-notif-switch.sh +++ b/org.glite.testsuites.ctb/LB/tests/lb-test-notif-switch.sh @@ -145,8 +145,9 @@ else printf "(${notifid}) " test_done + #Start listening for notifications - ${LBNOTIFY} receive -i 5 ${notifid} > $$_notifications.txt & + ${LBNOTIFY} receive -i 15 ${notifid} > $$_notifications.txt & recpid=$! printf "Logging events resulting in RUNNING state\n" @@ -154,8 +155,6 @@ else sleep 10 - kill $recpid - $SYS_GREP ${jobid} $$_notifications.txt > /dev/null if [ $? = 0 ]; then @@ -168,8 +167,10 @@ else $SYS_RM $$_notifications.txt + printf "Changing notification ... " $LBNOTIFY change ${notifid} ${otherjobid} + sleep 5 if [ $? = 0 ]; then printf "$LBNOTIFY change returned OK" @@ -179,15 +180,17 @@ else test_failed fi + kill $recpid + #Start listening for notifications - ${LBNOTIFY} receive -i 5 ${notifid} > $$_notifications.txt & + ${LBNOTIFY} receive -i 10 ${notifid} > $$_notifications.txt & recpid=$! printf "Logging events resulting in DONE state for both jobs\n" $LB_DONE_SH -j ${jobid} > /dev/null 2> /dev/null $LB_DONE_SH -j ${otherjobid} > /dev/null 2> /dev/null - sleep 20 + sleep 10 kill $recpid