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 committed 2024-08-09 18:51:07 +02:00
1 parent e8189933c7
commit bbc232e489
1 file changed
+1
+1
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