test_gnunet_dns.sh: check if user 'nobody' exists and return 77 if not.
authorng0 <ng0@n0.is>
Thu, 17 Oct 2019 14:10:55 +0000 (14:10 +0000)
committerng0 <ng0@n0.is>
Thu, 17 Oct 2019 14:10:55 +0000 (14:10 +0000)
src/dns/test_gnunet_dns.sh

index 0fa338c9ba1e930cd5355dceb1ac3ece25a3398b..e0fcb711dbfa916b56b145dc056ae302636dc8a9 100755 (executable)
@@ -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 &