diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-21 08:56:48 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-11-21 08:56:48 +0000 |
commit | cc860cd0446b963f8ca0b6866bf0042b85d6fe2e (patch) | |
tree | 1d124e17cdbe08ef2a9c5a49e446215c43e0f8be /src/gns/test_gns_txt_lookup.sh | |
parent | 73ae6c62217f8442033e44fa8de9bdc2059a5423 (diff) | |
download | gnunet-cc860cd0446b963f8ca0b6866bf0042b85d6fe2e.tar.gz gnunet-cc860cd0446b963f8ca0b6866bf0042b85d6fe2e.zip |
timeout is to short on slower systems (and when running with valgrind)
Diffstat (limited to 'src/gns/test_gns_txt_lookup.sh')
-rwxr-xr-x | src/gns/test_gns_txt_lookup.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gns/test_gns_txt_lookup.sh b/src/gns/test_gns_txt_lookup.sh index 8d7e08f64..52251af50 100755 --- a/src/gns/test_gns_txt_lookup.sh +++ b/src/gns/test_gns_txt_lookup.sh | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT | 2 | trap "gnunet-arm -e -c test_gns_lookup.conf" SIGINT |
3 | rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` | 3 | rm -r `gnunet-config -c test_gns_lookup.conf -s PATHS -o GNUNET_HOME -f` |
4 | which timeout &> /dev/null && DO_TIMEOUT="timeout 5" | 4 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" |
5 | TEST_TXT="GNS powered txt record data" | 5 | TEST_TXT="GNS powered txt record data" |
6 | gnunet-arm -s -c test_gns_lookup.conf | 6 | gnunet-arm -s -c test_gns_lookup.conf |
7 | gnunet-identity -C testego -c test_gns_lookup.conf | 7 | gnunet-identity -C testego -c test_gns_lookup.conf |
@@ -15,6 +15,6 @@ if [ "$RES_TXT" == "$TEST_TXT" ] | |||
15 | then | 15 | then |
16 | exit 0 | 16 | exit 0 |
17 | else | 17 | else |
18 | echo "Failed to resolve to proper TXT, got $RES_TXT." | 18 | echo "Failed to resolve to proper TXT, got '$RES_TXT'." |
19 | exit 1 | 19 | exit 1 |
20 | fi | 20 | fi |