Check stats output for file location warning.
authorZdeněk Šustr <sustr4@cesnet.cz>
Fri, 17 Feb 2012 10:23:14 +0000 (10:23 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Fri, 17 Feb 2012 10:23:14 +0000 (10:23 +0000)
org.glite.testsuites.ctb/LB/tests/lb-test-https.sh

index 35eeec6..9a1b920 100755 (executable)
@@ -337,6 +337,14 @@ test_done
                                                        print_error "Value $item not returned"
                                                fi
                                        done
+                                       printf "Checking stat file location... "
+                                       grep -i -E "<b>[ \t]*WARNING" https.$$.tmp > /dev/null
+                                       if [ $? -eq 0 ]; then
+                                               printf "Files are in tmp!"
+                                               test_warning
+                                       else
+                                               test_done
+                                       fi
                                else
                                        test_failed
                                        print_error "Statistics not returned"