gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r24550 - gnunet/src/dns


From: gnunet
Subject: [GNUnet-SVN] r24550 - gnunet/src/dns
Date: Thu, 25 Oct 2012 17:02:29 +0200

Author: grothoff
Date: 2012-10-25 17:02:29 +0200 (Thu, 25 Oct 2012)
New Revision: 24550

Modified:
   gnunet/src/dns/test_gnunet_dns.sh
Log:
-check that which succeeded

Modified: gnunet/src/dns/test_gnunet_dns.sh
===================================================================
--- gnunet/src/dns/test_gnunet_dns.sh   2012-10-25 14:59:49 UTC (rev 24549)
+++ gnunet/src/dns/test_gnunet_dns.sh   2012-10-25 15:02:29 UTC (rev 24550)
@@ -6,11 +6,20 @@
   echo "This test only works if run as root.  Skipping."
   exit 0
 fi
+if ! which sudo > /dev/null 
+then
+  echo "This test requires sudo.  Skipping."
+fi
 if [ ! -x `which sudo` ]
 then
   echo "This test requires sudo.  Skipping."
   exit 0
 fi
+if ! which nslookup
+then 
+  echo "This test requires nslookup.  Skipping."
+  exit 0
+fi
 if [ ! -x `which nslookup` ]
 then
   echo "This test requires nslookup.  Skipping."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]