diff options
author | ng0 <ng0@n0.is> | 2019-03-09 11:59:23 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-03-09 11:59:23 +0000 |
commit | bbe61e6019a4d0a213e42a80d37638e13759bba3 (patch) | |
tree | 68e97d43e1407dd73e25551336e71bccae979895 /src/gns/test_gns_rel_expiration.sh | |
parent | f7aa05c490d2027225e99a6d5f5bf920e76bf5ed (diff) | |
download | gnunet-bbe61e6019a4d0a213e42a80d37638e13759bba3.tar.gz gnunet-bbe61e6019a4d0a213e42a80d37638e13759bba3.zip |
bashism
Diffstat (limited to 'src/gns/test_gns_rel_expiration.sh')
-rwxr-xr-x | src/gns/test_gns_rel_expiration.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gns/test_gns_rel_expiration.sh b/src/gns/test_gns_rel_expiration.sh index c7c66bc27..993c2131e 100755 --- a/src/gns/test_gns_rel_expiration.sh +++ b/src/gns/test_gns_rel_expiration.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | # This file is in the public domain. | 2 | # This file is in the public domain. |
3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 3 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
4 | 4 | ||
@@ -25,7 +25,7 @@ MY_EGO="myego" | |||
25 | OTHER_EGO="delegatedego" | 25 | OTHER_EGO="delegatedego" |
26 | 26 | ||
27 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 27 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
28 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | 28 | which timeout > /dev/null 2>&1 && DO_TIMEOUT="timeout 5" |
29 | TEST_IP="127.0.0.1" | 29 | TEST_IP="127.0.0.1" |
30 | gnunet-arm -s -c test_gns_lookup.conf | 30 | gnunet-arm -s -c test_gns_lookup.conf |
31 | gnunet-identity -C $MY_EGO -c test_gns_lookup.conf | 31 | gnunet-identity -C $MY_EGO -c test_gns_lookup.conf |
@@ -48,13 +48,13 @@ gnunet-identity -D $OTHER_EGO -c test_gns_lookup.conf | |||
48 | gnunet-arm -e -c test_gns_lookup.conf | 48 | gnunet-arm -e -c test_gns_lookup.conf |
49 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` | 49 | rm -rf `gnunet-config -c test_gns_lookup.conf -f -s paths -o GNUNET_TEST_HOME` |
50 | 50 | ||
51 | if [ "$RES_IP_EXP" == "$TEST_IP" ] | 51 | if [ "$RES_IP_EXP" = "$TEST_IP" ] |
52 | then | 52 | then |
53 | echo "Failed to properly expire IP, got $RES_IP_EXP." | 53 | echo "Failed to properly expire IP, got $RES_IP_EXP." |
54 | exit 1 | 54 | exit 1 |
55 | fi | 55 | fi |
56 | 56 | ||
57 | if [ "$RES_IP" == "$TEST_IP" ] | 57 | if [ "$RES_IP" = "$TEST_IP" ] |
58 | then | 58 | then |
59 | exit 0 | 59 | exit 0 |
60 | else | 60 | else |