add some warnings if grid-proxy-info unavailable
authorMiloš Mulač <mulac@civ.zcu.cz>
Wed, 1 Feb 2006 16:11:06 +0000 (16:11 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Wed, 1 Feb 2006 16:11:06 +0000 (16:11 +0000)
org.glite.jp.index/test/run-test.sh

index 63100ba..149088e 100644 (file)
@@ -37,9 +37,11 @@ if [ -z "$X509_USER_CERT" -o -z "$X509_USER_KEY" ] ; then
        if [ -e "$GLOBUS_LOCATION/bin/grid-proxy-info" ] ; then
                timeleft=`$GLOBUS_LOCATION/bin/grid-proxy-info 2>&1| grep timeleft| sed 's/^.* //'`
                if [ "$timeleft" = "0:00:00" -o -z "$timeleft" ]; then 
-                       echo "No valid proxy cert found nor X509_USER_CERT/X509_USER_KEY specified! Aborting."
+                       echo "No valid proxy cert found nor GLITE_HOST_KEY/GLITE_HOST_KEY specified! Aborting."
                        exit 1
                fi
+       else
+               echo "Can't check proxy cert (grid-proxy-info not found). If you do not have valid proxy certificate, set GLITE_HOST_KEY/GLITE_HOST_KEY - otherwise tests will fail!"
        fi
 fi