diff options
author | LRN <lrn1986@gmail.com> | 2013-12-08 21:33:34 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-12-08 21:33:34 +0000 |
commit | 0339fb1c3eb6daeda7f1904815d8eb0101203567 (patch) | |
tree | eac23c2ad58d7dcfa36a3bbd15c09f87d2d8ebdc /src/gns/test_gns_delegated_lookup.sh | |
parent | ef2d4d1604028a47f7cbd4f23681eba37dc2ac0c (diff) | |
download | gnunet-0339fb1c3eb6daeda7f1904815d8eb0101203567.tar.gz gnunet-0339fb1c3eb6daeda7f1904815d8eb0101203567.zip |
Change gnunet-config detection in gns tests
Diffstat (limited to 'src/gns/test_gns_delegated_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_delegated_lookup.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gns/test_gns_delegated_lookup.sh b/src/gns/test_gns_delegated_lookup.sh index c949ca7dc..7f22a70b5 100755 --- a/src/gns/test_gns_delegated_lookup.sh +++ b/src/gns/test_gns_delegated_lookup.sh | |||
@@ -5,8 +5,13 @@ which timeout &> /dev/null && DO_TIMEOUT="timeout 30" | |||
5 | LOCATION=$(which gnunet-config) | 5 | LOCATION=$(which gnunet-config) |
6 | if [ -z $LOCATION ] | 6 | if [ -z $LOCATION ] |
7 | then | 7 | then |
8 | LOCATION="gnunet-config" | ||
9 | fi | ||
10 | $LOCATION --version | ||
11 | if test $? != 0 | ||
12 | then | ||
8 | echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" | 13 | echo "GNUnet command line tools cannot be found, check environmental variables PATH and GNUNET_PREFIX" |
9 | exit 1 | 14 | exit 77 |
10 | fi | 15 | fi |
11 | 16 | ||
12 | rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` | 17 | rm -rf `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` |