From 51ecc6f201ac0377d524a8e862d6736b2a795509 Mon Sep 17 00:00:00 2001 From: LRN Date: Wed, 4 Dec 2013 12:37:04 +0000 Subject: Skip gnunet-config-dependent tests when gnunet-config is missing --- src/namestore/test_namestore_lookup.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/namestore/test_namestore_lookup.sh') diff --git a/src/namestore/test_namestore_lookup.sh b/src/namestore/test_namestore_lookup.sh index 5a8e076b4..d1ac42544 100755 --- a/src/namestore/test_namestore_lookup.sh +++ b/src/namestore/test_namestore_lookup.sh @@ -4,12 +4,17 @@ trap "gnunet-arm -e -c $CONFIGURATION" SIGINT LOCATION=$(which gnunet-config) if [ -z $LOCATION ] +then + LOCATION="gnunet-config" +fi +$LOCATION --version +if test $? != 0 then echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" - exit 1 + exit 77 fi -rm -rf `gnunet-config -c $CONFIGURATION -s PATHS -o GNUNET_HOME` +rm -rf `$LOCATION -c $CONFIGURATION -s PATHS -o GNUNET_HOME` TEST_IP_PLUS="127.0.0.1" TEST_RECORD_NAME_DNS="www3" which timeout &> /dev/null && DO_TIMEOUT="timeout 5" -- cgit v1.2.3