Skip to content

Commit 9a0be40

Browse files
committed
Fail p11 tests if setup fails
1 parent d44f000 commit 9a0be40

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/xmlsec/test/p11_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ def setup():
215215
print("-" * 64)
216216
traceback.print_exc()
217217
print("-" * 64)
218-
logging.warning("PKCS11 tests disabled: unable to initialize test token: %s" % ex)
218+
logging.error("PKCS11 tests disabled: unable to initialize test token: %s" % ex)
219+
raise ex
219220

220221

221222
def teardown(self):

0 commit comments

Comments
 (0)