Allow nsupdate test rerun on FreeBSD

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.

(cherry picked from commit 124882476b)
This commit is contained in:
Tom Krizek 2024-01-10 10:53:18 +01:00
parent 6bf098e792
commit 7dff007ccd
No known key found for this signature in database
GPG key ID: 01623B9B652A20A7

View 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()