From: Zdeněk Šustr Date: Wed, 25 Jul 2012 06:52:53 +0000 (+0000) Subject: Cope with grey jobs turned off. X-Git-Tag: gridsite-core_R_1_7_22~8 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=3851636c00768dfe193361f772e51793f3c20d7f;p=jra1mw.git Cope with grey jobs turned off. --- diff --git a/org.glite.testsuites.ctb/LB/tests/lb-test-dump-load.sh b/org.glite.testsuites.ctb/LB/tests/lb-test-dump-load.sh index 1ccb14a..1fb5264 100755 --- a/org.glite.testsuites.ctb/LB/tests/lb-test-dump-load.sh +++ b/org.glite.testsuites.ctb/LB/tests/lb-test-dump-load.sh @@ -238,6 +238,7 @@ while true; do q=$q+1; uniq="$uniq${idchars:${q}:1}"; done + SKIP_GREY=0 jobid[${y}16]=`echo ${jobid[${y}10]} | $SYS_GREP -o -E "https://.*/"` jobid[${y}16]="${jobid[${y}16]}$uniq" @@ -363,8 +364,14 @@ while true; do printf "${jobid[${y}$i]}\t${desc[$i]}\t$real" test_done else - test_failed - print_error "${jobid[${y}$i]} (${desc[$i]}) in state $real, should be ${states[$i]}" + if [ $i -eq 16 ]; then #Skip grey + printf "${jobid[${y}$i]}\t${desc[$i]}\t" + test_skipped + SKIP_GREY=1 + else + test_failed + print_error "${jobid[${y}$i]} (${desc[$i]}) in state $real, should be ${states[$i]}" + fi fi done aclline=`$LBJOBSTATUS ${jobid[${y}30]} | $SYS_GREP -E "^acl"` @@ -412,7 +419,7 @@ while true; do printf "Checking states...\n" for (( y=1; y<=$REPS; y++ )); do for i in {10..30}; do - if [ $i -eq 16 ]; then + if [ $i -eq 16 ]; then #Skip grey continue fi $LBJOBSTATUS ${jobid[${y}$i]} 2>&1 | grep "Identifier removed" > /dev/null @@ -449,8 +456,13 @@ while true; do printf "${jobid[${y}$i]}\t${desc[$i]}\t$real" test_done else - test_failed - print_error "${jobid[${y}$i]} (${desc[$i]}) in state \"$real\", should be \"${states[$i]}\"" + if [ $i -eq 16 -a $SKIP_GREY -eq 1 ]; then #Skip grey + printf "${jobid[${y}$i]}\t${desc[$i]}\t---" + test_skipped + else + test_failed + print_error "${jobid[${y}$i]} (${desc[$i]}) in state \"$real\", should be \"${states[$i]}\"" + fi fi done if [ "$acltest" == "dn:TestIdentity" ]; then