From a0efa194383f345cf266df933520ae0807a7e5b7 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Thu, 13 Jun 2019 13:46:02 +0200 Subject: Add exclusions to the Pro firmware tests Signed-off-by: Szczepan Zalega --- unittest/test_pro.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1