diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2019-06-13 13:46:02 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2019-06-13 15:00:53 +0200 |
commit | a0efa194383f345cf266df933520ae0807a7e5b7 (patch) | |
tree | f86af46057690883491a760d82b38aa4c5c042cf /unittest | |
parent | 00f168b909d5c7c61512d39ed170a0b799bc24c8 (diff) | |
download | libnitrokey-a0efa194383f345cf266df933520ae0807a7e5b7.tar.gz libnitrokey-a0efa194383f345cf266df933520ae0807a7e5b7.tar.bz2 |
Add exclusions to the Pro firmware tests
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest')
-rw-r--r-- | unittest/test_pro.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/unittest/test_pro.py b/unittest/test_pro.py index 83c6da3..dc21f0c 100644 --- a/unittest/test_pro.py +++ b/unittest/test_pro.py @@ -943,15 +943,18 @@ def test_get_device_model(C): @pytest.mark.firmware def test_bootloader_password_change_pro(C): + skip_if_device_version_lower_than({'P': 11}) + assert C.NK_change_firmware_password_pro(b'zxcasd', b'zxcasd') == DeviceErrorCode.WRONG_PASSWORD assert C.NK_change_firmware_password_pro(DefaultPasswords.UPDATE, DefaultPasswords.UPDATE_TEMP) == DeviceErrorCode.STATUS_OK assert C.NK_change_firmware_password_pro(DefaultPasswords.UPDATE_TEMP, DefaultPasswords.UPDATE) == DeviceErrorCode.STATUS_OK # FIXME add tests for maximum password length - + @pytest.mark.firmware def test_bootloader_run_pro(C): + skip_if_device_version_lower_than({'P': 11}) assert C.NK_enable_firmware_update_pro(DefaultPasswords.UPDATE_TEMP) == DeviceErrorCode.WRONG_PASSWORD # Not enabled due to lack of side-effect removal at this point # assert C.NK_enable_firmware_update_pro(DefaultPasswords.UPDATE) == DeviceErrorCode.STATUS_OK |