]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Start using quit-nicely in rec bulk test
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 7 Feb 2025 12:23:09 +0000 (13:23 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 10 Feb 2025 13:01:07 +0000 (14:01 +0100)
regression-tests/recursor-test

index c8d1419477ecd843879a4af12f45fb9386cd5ee2..59c5fbc2c77730d858acfbb7d1b01f07d05824b2 100755 (executable)
@@ -71,16 +71,16 @@ ${DNSBULKTEST} --www=false -qe 127.0.0.1 $port $limit < ${CSV} > bulktest.result
 kill -USR1 $(cat pdns_recursor.pid) || true
 ${RECCONTROL} --timeout=20 --socket-dir=. --config-dir=. get-all || true
 
-# give it a chance to write the log requested by the kill
 sleep 1
+${RECCONTROL} --timeout=20 --socket-dir=. --config-dir=. ping
+${RECCONTROL} --timeout=20 --socket-dir=. --config-dir=. quit-nicely
+#
+# Since quit-nicely is now synchronous, we should not need to wait for the log to be up-date-date anymore
+#sleep 1
 echo
 echo "=== RECURSOR LOG ==="
 cat recursor.log
 echo "=== END RECURSOR LOG ==="
-sleep 1
-${RECCONTROL} --timeout=20 --socket-dir=. --config-dir=. ping
-kill $(cat pdns_recursor.pid)
-sleep 5
 
 . ./bulktest.results