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.
This commit is contained in:
Nicki Křížek 2025-10-08 11:35:24 +02:00
parent b3c025837d
commit 2ecbe46e0d
2 changed files with 2 additions and 1 deletions

View file

@ -40,7 +40,7 @@ keyfromlabel() {
dir="$4"
shift 4
$KEYFRLAB -K $dir -a $alg -l "pkcs11:token=softhsm2-enginepkcs11;object=${id}-${zone};pin-source=$PWD/ns1/pin" "$@" $zone >>keyfromlabel.out.$zone.$id 2>keyfromlabel.err.$zone.$id || return 1
$KEYFRLAB -K $dir -a $alg -y -l "pkcs11:token=softhsm2-enginepkcs11;object=${id}-${zone};pin-source=$PWD/ns1/pin" "$@" $zone >>keyfromlabel.out.$zone.$id 2>keyfromlabel.err.$zone.$id || return 1
cat keyfromlabel.out.$zone.$id
}

View file

@ -138,6 +138,7 @@ def test_keyfromlabel(alg_name, alg_type, alg_bits):
os.environ["KEYFRLAB"],
"-a",
alg_name,
"-y",
"-l",
f"pkcs11:token=softhsm2-keyfromlabel;object={key_id}-{zone};pin-source=pin",
*key_flag,