]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Disable keyfromlabel collision avoidance in tests
authorNicki Křížek <nicki@isc.org>
Wed, 8 Oct 2025 09:35:24 +0000 (11:35 +0200)
committerNicki Křížek <nicki@isc.org>
Fri, 10 Oct 2025 09:34:27 +0000 (11:34 +0200)
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)

bin/tests/system/enginepkcs11/setup.sh
bin/tests/system/keyfromlabel/tests_keyfromlabel.py

index f13f988979c527828c43f475e53ddfd76f7e1677..6ae3989a2a38bba7d97503f7829caa344de05049 100644 (file)
@@ -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
 }
 
index 1da253f67238daa6e3ddeccef794aceaef87bdbe..cc62ec6a54574528b80261017956ead392e6fa47 100644 (file)
@@ -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,