summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-10-17 14:10:55 +0000
committerng0 <ng0@n0.is>2019-10-17 14:10:55 +0000
commitc08cc5aeb3b2daa8711c86162575953a271e6b3e (patch)
treefe3875a65d421b7e85fe35faf480eb371137cda6
parent9d41ec39756a783c53bb06581ea189c95e08c4d6 (diff)
test_gnunet_dns.sh: check if user 'nobody' exists and return 77 if not.
-rwxr-xr-xsrc/dns/test_gnunet_dns.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dns/test_gnunet_dns.sh b/src/dns/test_gnunet_dns.sh
index 0fa338c9b..e0fcb711d 100755
--- a/src/dns/test_gnunet_dns.sh
+++ b/src/dns/test_gnunet_dns.sh
@@ -42,6 +42,12 @@ then
exit 77
fi
+if test ! `id nobody`;
+then
+ echo "This tests requires a user account 'nobody'. Skipping."
+ exit 77
+fi
+
export PATH=".:$PATH"
gnunet-service-dns -c dns.conf &
gnunet-dns-redirector -c dns.conf -4 127.0.0.1 &