-
-
Notifications
You must be signed in to change notification settings - Fork 276
Hi all
I did not find an example in how use NetworkUSBMassStorage in pytest. I mean how can wait for the device appear after power the hub for example and write a file to it. Where I can find some documentation?
All reactions
Replies: 1 comment
The USBStorageDriver uses the NetworkUSBMassStorage resource. Use its write_files()/write_image(), see https://github.com/labgrid-project/labgrid/blob/master/labgrid/driver/usbstoragedriver.py. These methods wait for the medium before interacting with the storage.
Note that it only makes sense to use these resources if you have some muxing device that allows switching the SD card or USB storage between your exporter host and DUT: see USBSDMuxDevice, USBSDWireDevice, LXAUSBMux.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment