From: Nicki Křížek Date: Wed, 8 Oct 2025 09:35:24 +0000 (+0200) Subject: Disable keyfromlabel collision avoidance in tests X-Git-Tag: v9.18.42~16^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=a8abaef5c5bc26a81605157971488bbece7abd3c;p=thirdparty%2Fbind9.git Disable keyfromlabel collision avoidance in tests With the collision avoidance on, some of the tests would occasionally fail. None of the tests using keyfromlabel are revoking the keys so it should be safe to disable it. (cherry picked from commit 2ecbe46e0d2de75a357d5d2da06638ecf806e617) --- diff --git a/bin/tests/system/enginepkcs11/setup.sh b/bin/tests/system/enginepkcs11/setup.sh index f13f988979c..6ae3989a2a3 100644 --- a/bin/tests/system/enginepkcs11/setup.sh +++ b/bin/tests/system/enginepkcs11/setup.sh @@ -42,7 +42,7 @@ keyfromlabel() { dir="$4" shift 4 - $KEYFRLAB -K $dir -E pkcs11 -a $alg -l "token=softhsm2-enginepkcs11;object=${id}-${zone};pin-source=$PWD/pin" "$@" $zone >>keyfromlabel.out.$zone.$id 2>keyfromlabel.err.$zone.$id || return 1 + $KEYFRLAB -K $dir -E pkcs11 -a $alg -y -l "token=softhsm2-enginepkcs11;object=${id}-${zone};pin-source=$PWD/pin" "$@" $zone >>keyfromlabel.out.$zone.$id 2>keyfromlabel.err.$zone.$id || return 1 cat keyfromlabel.out.$zone.$id } diff --git a/bin/tests/system/keyfromlabel/tests_keyfromlabel.py b/bin/tests/system/keyfromlabel/tests_keyfromlabel.py index 1da253f6723..cc62ec6a545 100644 --- a/bin/tests/system/keyfromlabel/tests_keyfromlabel.py +++ b/bin/tests/system/keyfromlabel/tests_keyfromlabel.py @@ -141,6 +141,7 @@ def test_keyfromlabel(alg_name, alg_type, alg_bits): "pkcs11", "-a", alg_name, + "-y", "-l", f"pkcs11:token=softhsm2-keyfromlabel;object={key_id}-{zone};pin-source=pin", *key_flag,