Skip to content

Commit

Permalink
Don't run SE050 test for stable releases or releases after 1.6.0
Browse files Browse the repository at this point in the history
We will likely use start using the SE050 in a future release and we don't want the test to keep on being ran
  • Loading branch information
sosthene-nitrokey committed Aug 16, 2023
1 parent e1ef89c commit af78e4f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pynitrokey/cli/nk3/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,11 @@ def test_se050(ctx: TestContext, device: Nitrokey3Base) -> TestResult:
if not isinstance(device, Nitrokey3Device):
return TestResult(TestStatus.SKIPPED)
firmware_version = ctx.firmware_version or device.version()
if firmware_version.core() < Version(1, 5, 0):
if (
firmware_version.core() < Version(1, 5, 0)
or firmware_version.core() >= Version(1, 6, 0)
or firmware_version.pre is not None
):
return TestResult(TestStatus.SKIPPED)

que: Queue[Optional[bytes]] = Queue()
Expand Down

0 comments on commit af78e4f

Please sign in to comment.