From 84751a26a95ee7bda541122c921a9c7fe4eb13d7 Mon Sep 17 00:00:00 2001 From: Florence Blanc-Renaud Date: Fri, 9 Aug 2024 12:13:20 +0200 Subject: [PATCH] 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 Reviewed-By: Michal Polovka --- ipatests/test_integration/test_hsm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ipatests/test_integration/test_hsm.py b/ipatests/test_integration/test_hsm.py index 974820fc7..7f92c6a79 100644 --- a/ipatests/test_integration/test_hsm.py +++ b/ipatests/test_integration/test_hsm.py @@ -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