Skip to content

tests: rm HSM availability assertion in tox.ini#528

Merged
jku merged 1 commit intosecure-systems-lab:mainfrom
lukpueh:rm-hsm-test-assert
Mar 6, 2023
Merged

tests: rm HSM availability assertion in tox.ini#528
jku merged 1 commit intosecure-systems-lab:mainfrom
lukpueh:rm-hsm-test-assert

Conversation

@lukpueh
Copy link
Copy Markdown
Member

@lukpueh lukpueh commented Mar 6, 2023

Currently, tox asserts that PYKCS11LIB env var is set to not silently skip tests on SoftHSM (virtual HSM).

This is is unnecessary for CI, where we control the env var, and also hard to figure out locally, where we can't expect everyone to setup SoftHSM.

This patch removes the assertion and adds a note to ci.yml to point out the consequences of unsetting the env var.

Fixes #527

Currently, tox asserts that PYKCS11LIB env var is set to not
silently skip tests on SoftHSM (virtual HSM).

This is is unnecessary for CI, where we control the env var, and
also hard to figure out locally, where we can't expect everyone
to setup SoftHSM.

This patch removes the assertion and adds a note to ci.yml to point
out the consequences of unsetting the env var.

Signed-off-by: Lukas Puehringer <[email protected]>
@lukpueh lukpueh marked this pull request as ready for review March 6, 2023 09:36
@lukpueh lukpueh requested a review from jku March 6, 2023 09:36
Copy link
Copy Markdown
Collaborator

@jku jku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems reasonable to me

@jku jku merged commit 00d221c into secure-systems-lab:main Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tests should not fail by default (PYKCS11LIB env var)

2 participants