Browse Source

test_gnunet_dns.sh: check if user 'nobody' exists and return 77 if not.

ng0 4 years ago
parent
commit
c08cc5aeb3
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/dns/test_gnunet_dns.sh

+ 6 - 0
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 &