]> git.ipfire.org Git - thirdparty/bind9.git/commit
Check for proper file size output in dnstap test
authorTom Krizek <tkrizek@isc.org>
Thu, 22 Jun 2023 16:08:17 +0000 (18:08 +0200)
committerTom Krizek <tkrizek@isc.org>
Mon, 26 Jun 2023 12:36:55 +0000 (14:36 +0200)
commitad5006cef4aa52d260f24f0d8a2b02beb5029b44
tree8a91538ff5ca34c7ce489c654f7caeb1fa71c24a
parentd1caa0b4f0d09f5e4ddb3a3b1bfc86a4283b797b
Check for proper file size output in dnstap test

Previously, the first check silently failed, as 450 is apparently (in
the CI setup) the minimum output size for the dnstap output, rather than
470 which the test was expecting. Effectively, the check served as a 5
second sleep rather than waiting for the proper file size.

Additionally, check the expected file sizes and fail if expectations
aren't met.

(manually picked from commit 5f809e50b6a8441592fdf6d0fd8aa69668a25439)

On main, the minimum file size seems to 454 bytes, while on EL7 in our
CI setup for the 9.18 branch, it appears to be 450 instead.
bin/tests/system/dnstap/tests.sh