fix only cache variable long/short
[oweals/gnunet.git] / src / gns / test_gns_ipv6_lookup.sh
index 6b7733ce0e575d8c4e1dd1f5174e5d2db62c35f6..f34a76727b55c7aa4bf6fbd40f50cebb74dc38e4 100755 (executable)
@@ -6,14 +6,14 @@ if [ -z $LOCATION ]
 then
   LOCATION="gnunet-config"
 fi
-$LOCATION --version &> /dev/null
+$LOCATION --version 1> /dev/null
 if test $? != 0
 then
        echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX"
        exit 77
 fi
 
-rm -r `rm -rf /tmp/test-gnunet-gns-peer-1/`
+rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
 which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
 TEST_IP="dead::beef"
 gnunet-arm -s -c test_gns_lookup.conf