From: Zdeněk Šustr Date: Thu, 22 Mar 2012 16:06:07 +0000 (+0000) Subject: Only actually compare socket NOs. in new version. X-Git-Tag: glite-jobid-api-c_R_2_1_2_1~11 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=612038c8a9f2caf3dc282770c7449d88de27f942;p=jra1mw.git Only actually compare socket NOs. in new version. --- diff --git a/org.glite.testsuites.ctb/LB/tests/lb-test-il-recovery.sh b/org.glite.testsuites.ctb/LB/tests/lb-test-il-recovery.sh index 1527edf..f5f23ed 100755 --- a/org.glite.testsuites.ctb/LB/tests/lb-test-il-recovery.sh +++ b/org.glite.testsuites.ctb/LB/tests/lb-test-il-recovery.sh @@ -216,14 +216,20 @@ fi printf "$SOCKS_POST" test_done - printf "Comparing No. of sockets... " - $SYS_EXPR $SOCKS_POST \> $SOCKS_PRE > /dev/null - if [ $? -gt 0 ]; then - printf "OK, less or equal" - test_done + check_srv_version '>=' "2.3" + if [ $? = 0 ]; then + printf "Comparing No. of sockets... " + $SYS_EXPR $SOCKS_POST \> $SOCKS_PRE > /dev/null + if [ $? -gt 0 ]; then + printf "OK, less or equal" + test_done + else + test_failed + print_error "There are more sockets after IL handled messages" + fi else - test_failed - print_error "There are more sockets after IL handled messages" + printf "Comparing No. of sockets... " + test_skipped fi #Purge test job