On 24-09-18 23:01, Paul Eggleton wrote:
On Monday, 24 September 2018 3:02:28 PM NZST Hussin, Mohamad Noor Alim wrote:
...
Otherwise I agree with Mike's reply, we should avoid writing to the storage
device as part of the test.
It is mean that just do test like mount and unmount only? To read something in
storage device we need to write at first place?
That's true - but you can still do a read test if you make it a precondition of
the test
that you write some known file to the storage device before running the test
(as part of setup, just as you need to set up the board/device before
running any tests - you just need to ensure this gets documented somewhere).
You're not testing the USB device, you're testing the USB stack. To do that,
just reading some data from "/dev/sda" is sufficient. You don't even need to
mount it. If this works, the stack is okay. If there are transfer errors or
problems, the USB stack will tell you about it.
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto