diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2020-01-27 18:18:55 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2020-02-26 12:26:11 +0100 |
commit | 4d6a01cd2f2ec6440f5dd2c02048cbb413f91f5d (patch) | |
tree | bde5149f191970d154246aeb41561842f06296a2 | |
parent | 9e1f590d5a929a21223bb39ae5123d27e69fda66 (diff) | |
download | libnitrokey-4d6a01cd2f2ec6440f5dd2c02048cbb413f91f5d.tar.gz libnitrokey-4d6a01cd2f2ec6440f5dd2c02048cbb413f91f5d.tar.bz2 |
Correct result of successful execution for bootloader to DISCONNECTED
-rw-r--r-- | unittest/constants.py | 1 | ||||
-rw-r--r-- | unittest/test_pro.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/unittest/constants.py b/unittest/constants.py index bf4f5b9..9e04701 100644 --- a/unittest/constants.py +++ b/unittest/constants.py @@ -52,6 +52,7 @@ class DeviceErrorCode: STATUS_NOT_AUTHORIZED = 5 STATUS_AES_DEC_FAILED = 0xa STATUS_UNKNOWN_ERROR = 100 + STATUS_DISCONNECTED = 255 class LibraryErrors: diff --git a/unittest/test_pro.py b/unittest/test_pro.py index 3f1cb8d..d26aa7c 100644 --- a/unittest/test_pro.py +++ b/unittest/test_pro.py @@ -1018,7 +1018,7 @@ def test_bootloader_run_pro_wrong_password(C): @pytest.mark.firmware def test_bootloader_run_pro(C): # Not enabled due to lack of side-effect removal at this point - assert C.NK_enable_firmware_update_pro(DefaultPasswords.UPDATE) == DeviceErrorCode.STATUS_OK + assert C.NK_enable_firmware_update_pro(DefaultPasswords.UPDATE) == DeviceErrorCode.STATUS_DISCONNECTED @pytest.mark.firmware |