diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2019-06-24 11:22:08 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2019-06-24 11:22:08 +0200 |
commit | 77f92145ddf80cab397cb7db2c654f384db5401a (patch) | |
tree | 29bf4b36e7ade4129efa8d5c78eb3e0bdf5ac2c2 /unittest/conftest.py | |
parent | 3ede630625cdc83cde2753897bee260595a5137a (diff) | |
download | libnitrokey-77f92145ddf80cab397cb7db2c654f384db5401a.tar.gz libnitrokey-77f92145ddf80cab397cb7db2c654f384db5401a.tar.bz2 |
Add simple CLI tool to enable firmware update mode on NK Storage
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/conftest.py')
-rw-r--r-- | unittest/conftest.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/unittest/conftest.py b/unittest/conftest.py index 7a4e2a2..49b4f02 100644 --- a/unittest/conftest.py +++ b/unittest/conftest.py @@ -1,5 +1,5 @@ """ -Copyright (c) 2015-2018 Nitrokey UG +Copyright (c) 2015-2019 Nitrokey UG This file is part of libnitrokey. @@ -31,6 +31,9 @@ basicConfig(format='* %(relativeCreated)6d %(filename)s:%(lineno)d %(message)s', log = getLogger('conftest') print = log.debug +def get_device_type(): + return device_type + def skip_if_device_version_lower_than(allowed_devices): global device_type |