]> git.ipfire.org Git - thirdparty/bind9.git/commit
Ignore softhsm2 errors when deleting token in keyfromlabel test
authorNicki Křížek <nicki@isc.org>
Thu, 19 Jun 2025 13:09:39 +0000 (15:09 +0200)
committerNicki Křížek <nicki@isc.org>
Thu, 19 Jun 2025 13:52:16 +0000 (13:52 +0000)
commite19e108698d0abae50cc41a56353116ffdd0b8ea
tree3f18021da5cb7ecc1d0a3958cf9957ad11a0ec81
parent270970a461bf71176a1799b9226537b6dd7d67f3
Ignore softhsm2 errors when deleting token in keyfromlabel test

In some rare cases, the softhsm2 utility reports failure to delete the
token directory, despite the token being found. Subsequent attempts to
delete the token again indicate that the token was deleted.

Ignore this cleanup error, as it doesn't prevent our tests from working
properly. There is also an attempt to delete the token before the test
starts which ensures a clean state before the test is executed, in case
there's actually a leftover token.

(cherry picked from commit e786a2e950411fb3ffe1aed140cc4520e4ffd74a)
bin/tests/system/keyfromlabel/tests_keyfromlabel.py