From c08cc5aeb3b2daa8711c86162575953a271e6b3e Mon Sep 17 00:00:00 2001 From: ng0 Date: Thu, 17 Oct 2019 14:10:55 +0000 Subject: [PATCH] test_gnunet_dns.sh: check if user 'nobody' exists and return 77 if not. --- src/dns/test_gnunet_dns.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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 & -- 2.25.1