]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Allow dnstap system test rerun on freebsd13
authorNicki Křížek <nicki@isc.org>
Thu, 3 Jul 2025 12:40:06 +0000 (14:40 +0200)
committerNicki Křížek <nicki@isc.org>
Mon, 7 Jul 2025 11:29:15 +0000 (13:29 +0200)
The check "unix socket message counts" sometimes fails with "dnstap
output file smaller than expected". This only happens on freebsd13 and
can't be reproduced easily. There was an attempt to decrease the
required file size in the past, but apparently, the issue can still
occur.

bin/tests/system/dnstap/tests_sh_dnstap.py
bin/tests/system/isctest/mark.py
bin/tests/system/timeouts/tests_tcp_timeouts.py

index 10d9a4111b20b7d7475776aa9324d6da5a1a2bbb..e487ca2d089790103a627423adfd24f693f844ad 100644 (file)
@@ -31,5 +31,6 @@ pytestmark = [
 ]
 
 
+@isctest.mark.flaky(max_runs=2, rerun_filter=isctest.mark.is_host_freebsd_13)
 def test_dnstap(run_tests_sh):
     run_tests_sh()
index b4617ced81d72c0ad930a48fe1c729984ee85d76..199cc92e424fd76e9c7b8331bd36d53895a388d5 100644 (file)
@@ -12,6 +12,7 @@
 # information regarding copyright ownership.
 
 import os
+import platform
 import shutil
 import subprocess
 
@@ -39,6 +40,10 @@ def feature_test(feature):
     return True
 
 
+def is_host_freebsd_13(*_):
+    return platform.system() == "FreeBSD" and platform.release().startswith("13")
+
+
 def with_algorithm(name: str):
     key = f"{name}_SUPPORTED"
     assert key in os.environ, f"{key} env variable undefined"
index 1750715ce08b342223b9f3852e31e6621cb252b7..1fe1088a695ae93edc820143f77940e09de25b99 100644 (file)
@@ -13,7 +13,6 @@
 
 # pylint: disable=unused-variable
 
-import platform
 import socket
 import time
 
@@ -68,11 +67,7 @@ def test_initial_timeout(named_port):
                 raise EOFError from e
 
 
-def is_host_freebsd_13(*_):
-    return platform.system() == "FreeBSD" and platform.release().startswith("13")
-
-
-@isctest.mark.flaky(max_runs=2, rerun_filter=is_host_freebsd_13)
+@isctest.mark.flaky(max_runs=2, rerun_filter=isctest.mark.is_host_freebsd_13)
 def test_idle_timeout(named_port):
     #
     # The idle timeout is 5 seconds, so the third message should fail