aboutsummaryrefslogtreecommitdiff
path: root/unittest/misc.py
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2019-03-18 20:15:58 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2019-03-18 20:16:02 +0100
commit3a797e0db06b66a9f333cc5126a39eec3a1e3695 (patch)
tree3995bf825e43a50257eb3a2a94ff602aaa0c78ed /unittest/misc.py
parente27e252aff13496b9e7cd1c064aced9b9a3d7500 (diff)
downloadlibnitrokey-3a797e0db06b66a9f333cc5126a39eec3a1e3695.tar.gz
libnitrokey-3a797e0db06b66a9f333cc5126a39eec3a1e3695.tar.bz2
Unlock 64 bit tests for Storage
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/misc.py')
-rw-r--r--unittest/misc.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/unittest/misc.py b/unittest/misc.py
index 8be915d..c1c197b 100644
--- a/unittest/misc.py
+++ b/unittest/misc.py
@@ -67,4 +67,8 @@ def is_storage(C):
def is_long_OTP_secret_handled(C):
- return is_pro_rtm_08(C) or is_storage(C) and get_devices_firmware_version(C) > 43
+ return is_pro_rtm_08(C) or is_storage(C) and get_devices_firmware_version(C) >= 54
+
+
+def has_binary_counter(C):
+ return is_pro_rtm_07(C) or is_storage(C) and get_devices_firmware_version(C) >= 54