From 157b177284e6647a773a6de56cdc60ff88cec5d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Wed, 1 Feb 2006 16:11:06 +0000 Subject: [PATCH] add some warnings if grid-proxy-info unavailable --- org.glite.jp.index/test/run-test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.glite.jp.index/test/run-test.sh b/org.glite.jp.index/test/run-test.sh index 63100ba..149088e 100644 --- a/org.glite.jp.index/test/run-test.sh +++ b/org.glite.jp.index/test/run-test.sh @@ -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 -- 1.8.2.3