From: Zdeněk Šustr Date: Wed, 20 Apr 2011 07:12:06 +0000 (+0000) Subject: Regression test bug #77002 X-Git-Tag: glite-lb-emi-lb_R_1_0_0_1~10 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=0c56cb8a2e71df2414e1ae9e9f98fd9eba1fef7d;p=jra1mw.git Regression test bug #77002 --- diff --git a/org.glite.testsuites.ctb/LB/tests/lb-test-ws.sh b/org.glite.testsuites.ctb/LB/tests/lb-test-ws.sh index 8de95e0..58fee15 100755 --- a/org.glite.testsuites.ctb/LB/tests/lb-test-ws.sh +++ b/org.glite.testsuites.ctb/LB/tests/lb-test-ws.sh @@ -134,6 +134,20 @@ else print_error "Job has not been submitted" fi + #(regresion-test Savannah Bug 77002) + printf "Checking if doneCode unset for job not yet done..." + + doneCode=`${LBWSJOBSTATUS} -m ${servername}:${GLITE_LB_SERVER_WPORT} -j ${jobid} | ${SYS_GREP} status | ${SYS_GREP} doneCode | ${SYS_SED} 's/^.*//' | ${SYS_SED} 's/<\/doneCode>.*$//'` + + printf "($doneCode)" + + if [ "$doneCode" == "" ]; then + test_done + else + test_failed + print_error "doneCode value $doneCode unexpected" + fi + printf "Is it possible to retrieve events?" ${LBWSJOBLOG} -j ${jobid} -m ${servername}:${GLITE_LB_SERVER_WPORT} | $SYS_GREP "" >> /dev/null