diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2019-06-14 17:04:19 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2019-06-14 17:06:30 +0200 |
commit | 0e4f960018828c37c3a536b436d707d4a99afdc1 (patch) | |
tree | a45993afc9a9f843938a5ffa1ab704adcfd74d29 /unittest | |
parent | 3eb4856ed8c9a5a8179679f2432c01d382a9c07a (diff) | |
download | libnitrokey-0e4f960018828c37c3a536b436d707d4a99afdc1.tar.gz libnitrokey-0e4f960018828c37c3a536b436d707d4a99afdc1.tar.bz2 |
Correct binary counter specifier
Makes the 64bit OTP tests passing on the Pro v0.8+ (instead of being
skipped).
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest')
-rw-r--r-- | unittest/misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittest/misc.py b/unittest/misc.py index c1c197b..e9e1753 100644 --- a/unittest/misc.py +++ b/unittest/misc.py @@ -71,4 +71,4 @@ def is_long_OTP_secret_handled(C): def has_binary_counter(C): - return is_pro_rtm_07(C) or is_storage(C) and get_devices_firmware_version(C) >= 54 + return (not is_storage(C)) or (is_storage(C) and get_devices_firmware_version(C) >= 54) |