-indentation, code cleanup
[oweals/gnunet.git] / src / gns / test_gns_delegated_lookup.sh
index 83710d28be0438296545c6e933fa72e8b07a8ab6..04a46f834157811a6161537eda1c973181a604cd 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/bash
 trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT
 which timeout &> /dev/null && DO_TIMEOUT="timeout 5"
+rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f`
 
 TEST_IP="127.0.0.1"
 gnunet-arm -s -c test_gns_lookup.conf
@@ -18,5 +19,6 @@ if [ "$RES_IP" == "$TEST_IP" ]
 then
   exit 0
 else
+  echo "Failed to resolve to proper IP, got $RES_IP."
   exit 1
 fi