Pass proxy lifetime if set
authorZdeněk Šustr <sustr4@cesnet.cz>
Mon, 14 Nov 2011 13:38:28 +0000 (13:38 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Mon, 14 Nov 2011 13:38:28 +0000 (13:38 +0000)
org.glite.testsuites.ctb/LB/tests/lb-common.sh

index 4dfc806..3733007 100755 (executable)
@@ -132,7 +132,12 @@ function check_credentials_and_generate_proxy()
 {      
        check_credentials
        if [ $? != 0 ]; then
-               ./lb-generate-fake-proxy.sh
+               if [ "$1" != "" ]; then
+                       PROXYLIFE=" --hours $1"
+               else 
+                       PROXYLIFE=""
+               fi
+               ./lb-generate-fake-proxy.sh $PROXYLIFE
                if [ $? != 0 ]; then
                        test_failed
                        print_error "Proxy not created - process failed"