From 0339fb1c3eb6daeda7f1904815d8eb0101203567 Mon Sep 17 00:00:00 2001 From: LRN Date: Sun, 8 Dec 2013 21:33:34 +0000 Subject: Change gnunet-config detection in gns tests --- src/gns/test_gns_zkey_lookup.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/gns/test_gns_zkey_lookup.sh') diff --git a/src/gns/test_gns_zkey_lookup.sh b/src/gns/test_gns_zkey_lookup.sh index 36dec131e..9ce5e1d37 100755 --- a/src/gns/test_gns_zkey_lookup.sh +++ b/src/gns/test_gns_zkey_lookup.sh @@ -4,9 +4,14 @@ which timeout &> /dev/null && DO_TIMEOUT="timeout 5" 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 test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` -- cgit v1.2.3