]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Allow nsupdate test rerun on FreeBSD
authorTom Krizek <tkrizek@isc.org>
Wed, 10 Jan 2024 09:53:18 +0000 (10:53 +0100)
committerTom Krizek <tkrizek@isc.org>
Wed, 10 Jan 2024 12:18:04 +0000 (13:18 +0100)
The "exceeded time limit waiting for literal 'too many DNS UPDATEs
queued' in ns1/named.run" is prone to fail due to a timing issue.
Despite out efforts to stabilize it, the check still often fails on
FreeBSD in our CI. Allow the test to be re-run on this platform.

bin/tests/system/nsupdate/tests_sh_nsupdate.py

index 897eb0831692de79da0e34b4868c7157d5abe755..5c1a9c7e3de4504798bdf99afcc157e4e5887a1e 100644 (file)
@@ -9,6 +9,14 @@
 # See the COPYRIGHT file distributed with this work for additional
 # information regarding copyright ownership.
 
+import platform
 
+import pytest_custom_markers
+
+
+MAX_RUNS = 2 if platform.system() == "FreeBSD" else 1  # GL#3846
+
+
+@pytest_custom_markers.flaky(max_runs=MAX_RUNS)
 def test_nsupdate(run_tests_sh):
     run_tests_sh()