ipatests: skip HSM test if pki < 11.5.9

The test TestHSMNegative should be skipped if PKI is too old,
but its uninstall method does not check the PKI version.

Add a call to check_version in the class uninstall method.

Fixes: https://pagure.io/freeipa/issue/9648

Signed-off-by: Florence Blanc-Renaud <flo@redhat.com>
Reviewed-By: Michal Polovka <mpolovka@redhat.com>
This commit is contained in:
Florence Blanc-Renaud 2024-08-09 12:13:20 +02:00
parent 8046023fc4
commit 84751a26a9

View File

@ -835,6 +835,7 @@ class TestHSMNegative(IntegrationTest):
@classmethod
def uninstall(cls, mh):
check_version(cls.master)
cls.master.run_command(
['softhsm2-util', '--delete-token', '--token', cls.token_name],
raiseonerr=False