]> git.ipfire.org Git - thirdparty/bind9.git/commit
Bail-out early if dig fails to finish successfully or takes too long
authorOndřej Surý <ondrej@isc.org>
Thu, 5 Dec 2019 17:09:21 +0000 (18:09 +0100)
committerMichał Kępień <michal@isc.org>
Fri, 10 Jan 2020 09:04:35 +0000 (10:04 +0100)
commit0d645351db7dc3e2b0e9af8c686830e369216a53
treeceebf339a5fede4a4047a21e3abc4318e0741742
parentd315ae4df67ce99f9e1be09c3701dda17e7bca52
Bail-out early if dig fails to finish successfully or takes too long

Before, the zero system test could get stuck almost infinitely, because
the first test sends > 300 queries with 5 seconds timeout on each in
each pass.  If named crashed early, it would took the test more than 4
hours to properly timeout.

This commit introduces a "watchdog" on the dig commands running in the
background and failing the test on timeout, failing any test if any dig
command fails to return successfully, and making the tests.sh script
shellcheck clean.

(cherry picked from commit 2a65a47f39db732c05c628a6463cdd5c672463b3)
bin/tests/system/zero/tests.sh