diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2020-02-26 12:34:45 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2020-02-26 12:34:45 +0100 |
commit | 6100df4127eca5f9733cd5fa51acd32c8febd754 (patch) | |
tree | 281cd25844da3d4ea1fd424ecd3a90049d3fa1ac /unittest/misc.py | |
parent | 2c52393d12dbb16ce1d643cf020aff964da6ec89 (diff) | |
parent | f37b771bbb8b665f4c0c1fe6f8336cf4fb458e5d (diff) | |
download | libnitrokey-6100df4127eca5f9733cd5fa51acd32c8febd754.tar.gz libnitrokey-6100df4127eca5f9733cd5fa51acd32c8febd754.tar.bz2 |
Merge branch 'pro-bootloader'
Add tests for the Nitrokey Pro bootloader support.
Allow to reconnect to the device during the test execution
(e.g. for a reinsertion).
Connected: https://github.com/Nitrokey/nitrokey-pro-firmware/issues/69
Diffstat (limited to 'unittest/misc.py')
-rw-r--r-- | unittest/misc.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unittest/misc.py b/unittest/misc.py index e9e1753..6a0d486 100644 --- a/unittest/misc.py +++ b/unittest/misc.py @@ -72,3 +72,7 @@ def is_long_OTP_secret_handled(C): def has_binary_counter(C): return (not is_storage(C)) or (is_storage(C) and get_devices_firmware_version(C) >= 54) + + +def bb(x): + return bytes(x, encoding='ascii')
\ No newline at end of file |