From a01d37a0b3289bced306f5d537ea4824e63c8c0a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Filipovi=C4=8D?= Date: Fri, 21 May 2010 13:54:00 +0000 Subject: [PATCH] fixed lb-test-notif-switch test --- org.glite.testsuites.ctb/LB/tests/lb-test-notif-switch.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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 -- 1.8.2.3