From 77f92145ddf80cab397cb7db2c654f384db5401a Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Mon, 24 Jun 2019 11:22:08 +0200 Subject: Add simple CLI tool to enable firmware update mode on NK Storage Signed-off-by: Szczepan Zalega --- unittest/conftest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'unittest/conftest.py') 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 -- cgit v1.2.1