Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nk3 test: Fix provisioner test #367

Merged
merged 1 commit into from
Apr 11, 2023
Merged

Conversation

robin-nitrokey
Copy link
Member

This patch adds the provisioner test to the default excludes for the nitropy nk3 test command. The reason for this is that it the test is not relevant outside of production and is likely to fail if gnupg/scdaemon is running or if there is an issue with pcscd.

It also changes the test setup so that the provisioner test case is always listed, even if pyscard is not installed. In this case, it is marked as skipped.

Fixes #323

Changes

  • Add provisioner test case to default excludes in nitropy nk3 test.
  • Always list provisioner test case even if pyscard is missing.

Checklist

  • tested with Python3.9
  • signed commits
  • updated documentation (e.g. parameter description, inline doc, docs.nitrokey)
  • added labels

Test Environment and Execution

  • OS: Debian 11
  • device's model: NK3AM
  • device's firmware version: v1.0.3

Relevant Output Example

[5/6]   provisioner     Firmware mode                   SKIPPED         pcsc feature is deactivated

This patch adds the provisioner test to the default excludes for the
nitropy nk3 test command.  The reason for this is that it the test is
not relevant outside of production and is likely to fail if
gnupg/scdaemon is running or if there is an issue with pcscd.

It also changes the test setup so that the provisioner test case is
always listed, even if pyscard is not installed.  In this case, it is
marked as skipped.

Fixes #323
@robin-nitrokey robin-nitrokey merged commit a77096c into master Apr 11, 2023
@robin-nitrokey robin-nitrokey deleted the nk3-test-provisioner branch April 11, 2023 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve error message for provisioner test
2 participants