bind9/bin/tests/system/enginepkcs11/tests_sh_enginepkcs11.py
Nicki Křížek 4c487c811d Use pytest.mark.flaky as the flaky marker
It's possible to use pytest.mark.flaky, which achieves the exact same
thing as our custom-defined isctest.mark.flaky -- attempts to rerun the
test on failure, but only is flaky package is available.
2025-07-07 13:29:15 +02:00

54 lines
1.4 KiB
Python

# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
#
# SPDX-License-Identifier: MPL-2.0
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
#
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
import pytest
pytestmark = pytest.mark.extra_artifacts(
[
"dig.out.*",
"dsset-*",
"keyfromlabel.err.*",
"keyfromlabel.out.*",
"pkcs11-tool.err.*",
"pkcs11-tool.out.*",
"signer.out.*",
"ns*/dig.out.*",
"ns*/K*",
"ns*/keygen.out.*",
"ns*/update.cmd.*",
"ns*/update.log.*",
"ns*/verify.out.*",
"ns*/pin",
"ns*/zone.*.jbk",
"ns*/zone.*.jnl",
"ns*/*.kskid1",
"ns*/*.kskid2",
"ns*/*.zskid1",
"ns*/*.zskid2",
"ns1/keys",
"ns1/*.example.db",
"ns1/*.example.db.signed",
"ns1/*.kasp.db",
"ns1/*.kasp.db.signed",
"ns1/*.split.db",
"ns1/*.split.db.signed",
"ns1/*.weird.db",
"ns1/*.weird.db.signed",
"ns2/keys",
"ns2/*.view*.db",
"ns2/*.view*.db.signed",
]
)
@pytest.mark.flaky(max_runs=5) # GL#4605
def test_enginepkcs11(run_tests_sh):
run_tests_sh()