]> 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:12 +0000 (10:04 +0100)
commitbea5bcff8d8da63db3a424624a1d899fc4286b87
tree33cb907380be7e9b735749c3a0cb1fee8f196223
parent7c878784555152f404a990c7f6340cf7d4501881
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