From 612038c8a9f2caf3dc282770c7449d88de27f942 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zden=C4=9Bk=20=C5=A0ustr?= Date: Thu, 22 Mar 2012 16:06:07 +0000 Subject: [PATCH] Only actually compare socket NOs. in new version. --- .../LB/tests/lb-test-il-recovery.sh | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) 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 -- 1.8.2.3