chg: test: Skip some tests on problematic OpenSSL version

Closes #4814

Merge branch '4814-skip-tests-on-problematic-openssl-version' into 'bind-9.18'

See merge request isc-projects/bind9!9425
This commit is contained in:
Nicki Křížek 2024-09-10 14:52:58 +00:00
commit bae3f9d3d0
3 changed files with 13 additions and 0 deletions

View file

@ -9,6 +9,9 @@
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
import isctest.mark
@isctest.mark.supported_openssl_version
def test_enginepkcs11(run_tests_sh):
run_tests_sh()

View file

@ -13,6 +13,7 @@
import os
from pathlib import Path
import ssl
import subprocess
import pytest
@ -63,6 +64,12 @@ dnsrps_enabled = pytest.mark.skipif(
not is_dnsrps_available(), reason="dnsrps disabled in the build"
)
supported_openssl_version = pytest.mark.skipif(
ssl.OPENSSL_VERSION_NUMBER >= 0x300000C0
and ssl.OPENSSL_VERSION_NUMBER < 0x300000E0,
reason="unsupported OpenSSL [GL #4814]",
)
try:
import flaky as flaky_pkg # type: ignore

View file

@ -9,6 +9,9 @@
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
import isctest.mark
@isctest.mark.supported_openssl_version
def test_keyfromlabel(run_tests_sh):
run_tests_sh()