aboutsummaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2019-01-26 17:55:10 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2019-01-26 21:13:18 +0100
commitc9b07f6adea66d1edc20acfee759880743e6a5db (patch)
tree8577b390197293cf1689afb8473526f03898afba /unittest
parent502b534e50737372d9e48b9c3e063b3281988b82 (diff)
downloadlibnitrokey-c9b07f6adea66d1edc20acfee759880743e6a5db.tar.gz
libnitrokey-c9b07f6adea66d1edc20acfee759880743e6a5db.tar.bz2
Additional check and device/mount print
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest')
-rw-r--r--unittest/test_storage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/unittest/test_storage.py b/unittest/test_storage.py
index 53ad006..73dae9d 100644
--- a/unittest/test_storage.py
+++ b/unittest/test_storage.py
@@ -484,6 +484,7 @@ def test_export_firmware_extended_macos(C):
import plistlib
usb_devices = pexpect.run('system_profiler -xml SPUSBDataType')
+ assert b'Nitrokey' in usb_devices, 'No Nitrokey devices connected'
usb_devices_parsed = plistlib.loads(usb_devices)
assert isinstance(usb_devices_parsed, list), 'usb_devices_parsed has unexpected type'
@@ -520,6 +521,7 @@ def test_export_firmware_extended_macos(C):
assert 'mount_point' in volume, 'could not get mount point'
firmware_abs_path = volume['mount_point'] + '/firmware.bin'
checks = 0
+ print('path: {}, device: {}'.format(firmware_abs_path, device))
checks_add = 0
if exist(firmware_abs_path):