]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Wait for the telemetry check to finish
authorOndřej Surý <ondrej@isc.org>
Thu, 22 Sep 2022 07:45:54 +0000 (09:45 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 22 Sep 2022 07:45:54 +0000 (09:45 +0200)
Instead of expecting that telemetry check has already finished,
wait for it for maximum of three seconds, because named is run with
-tat=3, so the telemetry check must happen with 3 second window.

Co-authored-by: Evan Hunt <each@isc.org>
bin/tests/system/mirror/tests.sh

index f29f86202973fa3f269545452f990a8c6a93fe83..8ebfb6e3485be7d230a8112bac2cc8b90b0a991a 100644 (file)
@@ -218,7 +218,7 @@ n=$((n + 1))
 echo_i "ensuring trust anchor telemetry queries are sent upstream for a mirror zone ($n)"
 ret=0
 # ns3 is started with "-T tat=3", so TAT queries should have already been sent.
-grep "_ta-[-0-9a-f]*/NULL" ns1/named.run > /dev/null || ret=1
+wait_for_log_re 3 "_ta-[-0-9a-f]*/NULL" ns1/named.run || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=$((status + ret))