]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1818] Don't show dig output for expected failures
authorMukund Sivaraman <muks@isc.org>
Mon, 2 Apr 2012 08:29:55 +0000 (13:59 +0530)
committerMukund Sivaraman <muks@isc.org>
Sun, 15 Apr 2012 09:33:55 +0000 (15:03 +0530)
tests/system/bindctl/tests.sh

index 157e9dec7b5ef216cd9d00a03f92951ca43de37b..352642e87f144166ac56ac12216cf431ea87650b 100755 (executable)
@@ -33,7 +33,7 @@ cnt_value2=0
 cnt_value3=0
 
 echo "I:Checking b10-auth is disabled by default ($n)"
-$DIG +norec @10.53.0.1 -p 53210 ns.example.com. A && status=1
+$DIG +norec @10.53.0.1 -p 53210 ns.example.com. A > /dev/null && status=1
 if [ $status != 0 ]; then echo "I:failed"; fi
 n=`expr $n + 1`
 
@@ -75,7 +75,7 @@ quit
 ' | $RUN_BINDCTL \
        --csv-file-dir=$BINDCTL_CSV_DIR 2>&1 > /dev/null || status=1
 # dig should exit with a failure code.
-$DIG +tcp +norec @10.53.0.1 -p 53210 ns.example.com. A && status=1
+$DIG +tcp +norec @10.53.0.1 -p 53210 ns.example.com. A > /dev/null && status=1
 if [ $status != 0 ]; then echo "I:failed"; fi
 n=`expr $n + 1`