Update tests to work with newer HTML output too.
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 27 Aug 2012 14:45:30 +0000 (14:45 +0000)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Mon, 27 Aug 2012 14:45:30 +0000 (14:45 +0000)
org.glite.testsuites.ctb/LB/tests/lb-test-https.sh

index f7b8dd9..9a18ac6 100755 (executable)
@@ -226,7 +226,7 @@ test_done
                                        fi
 
                                        printf "Checking for validity period (to distinguis from job listing)... "
-                                       $SYS_GREP -E "Valid until:</th><td>[0-9 :-]+</td>" https.$$.tmp > /dev/null 2> /dev/null
+                                       $SYS_GREP -E "Valid until:?</th><td>[0-9 :-]+</td>" https.$$.tmp > /dev/null 2> /dev/null
 
                                        if [ "$?" != "0" ]; then
                                                test_failed
@@ -307,10 +307,10 @@ test_done
                                if [ ! "$LineNO" = "0" ]; then
                                        test_done
                                        printf "Checking for items... "
-                                       for item in msg_brokers msg_prefixes 
+                                       for item in 'msg_brokers|Messaging brokers' 'msg_prefixes|Messaging prefixes' 
                                        do
                                                printf "$item... "
-                                               $SYS_GREP -E "$item.*=" https.$$.tmp > /dev/null
+                                               $SYS_GREP -E "$item(.*=)?" https.$$.tmp > /dev/null
                                                if [ "$?" = "0" ]; then
                                                        test_done
                                                else