diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2019-01-26 17:55:10 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2019-01-26 21:13:18 +0100 |
commit | c9b07f6adea66d1edc20acfee759880743e6a5db (patch) | |
tree | 8577b390197293cf1689afb8473526f03898afba /unittest/test_storage.py | |
parent | 502b534e50737372d9e48b9c3e063b3281988b82 (diff) | |
download | libnitrokey-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/test_storage.py')
-rw-r--r-- | unittest/test_storage.py | 2 |
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): |