]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Silence two grep calls
authorMatthijs Mekking <matthijs@isc.org>
Thu, 27 Aug 2020 12:14:57 +0000 (14:14 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 2 Sep 2020 12:59:20 +0000 (14:59 +0200)
(cherry picked from commit 2d2b8e7c0258089c7f8f24368f6027bc410edaae)

bin/tests/system/kasp/tests.sh

index 74a8d558e15d65ca8822dad82e2bdbc662575c32..032966a92a41f296ed7132bc4c0e0b85e802c144 100644 (file)
@@ -1550,14 +1550,14 @@ basefile=$(key_get KEY1 BASEFILE)
 n=$((n+1))
 echo_i "checkds publish correctly sets DSPublish for zone $ZONE ($n)"
 rndc_checkds "$SERVER" "$DIR" "-" "20190102121314" "published" "$ZONE"
-grep "DSPublish: 20190102121314" "${basefile}.state" || log_error "DSPublish not set in ${basefile}"
+grep "DSPublish: 20190102121314" "${basefile}.state" > /dev/null || log_error "DSPublish not set in ${basefile}"
 test "$ret" -eq 0 || echo_i "failed"
 status=$((status+ret))
 
 n=$((n+1))
 echo_i "checkds withdraw correctly sets DSRemoved for zone $ZONE ($n)"
 rndc_checkds "$SERVER" "$DIR" "-" "20200102121314" "withdrawn" "$ZONE"
-grep "DSRemoved: 20200102121314" "${basefile}.state" || log_error "DSRemoved not set in ${basefile}"
+grep "DSRemoved: 20200102121314" "${basefile}.state" > /dev/null || log_error "DSRemoved not set in ${basefile}"
 test "$ret" -eq 0 || echo_i "failed"
 status=$((status+ret))