From c9b07f6adea66d1edc20acfee759880743e6a5db Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Sat, 26 Jan 2019 17:55:10 +0100 Subject: Additional check and device/mount print Signed-off-by: Szczepan Zalega --- unittest/test_storage.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'unittest') 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): -- cgit v1.2.3