Parcourir la source

[1818] Don't show dig output for expected failures

Mukund Sivaraman il y a 13 ans
Parent
commit
22aa6eec94
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      tests/system/bindctl/tests.sh

+ 2 - 2
tests/system/bindctl/tests.sh

@@ -33,7 +33,7 @@ cnt_value2=0
 cnt_value3=0
 cnt_value3=0
 
 
 echo "I:Checking b10-auth is disabled by default ($n)"
 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
 if [ $status != 0 ]; then echo "I:failed"; fi
 n=`expr $n + 1`
 n=`expr $n + 1`
 
 
@@ -75,7 +75,7 @@ quit
 ' | $RUN_BINDCTL \
 ' | $RUN_BINDCTL \
 	--csv-file-dir=$BINDCTL_CSV_DIR 2>&1 > /dev/null || status=1
 	--csv-file-dir=$BINDCTL_CSV_DIR 2>&1 > /dev/null || status=1
 # dig should exit with a failure code.
 # 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
 if [ $status != 0 ]; then echo "I:failed"; fi
 n=`expr $n + 1`
 n=`expr $n + 1`