CopyFileFromUSB does not fail when the user has removed the stick. Instead it sends the successEvent. To duplicate, insert stick, press MountUSB, remove the stick, press CopyFromUSB.
Admittedly, one should not remove the stick until it has been unmounted BUT a user will do this inadvertently and my program needs to handle it gracefully.
Note that CopyToUSB does fail and thus passes this test.
CopyFileFromUSB when user has removed stick
Note that the fail event is never sent even though the copy fails.
ENTER Script CopyFileFromUSB
EXIT Script CopyFileFromUSB
cp: Can't open source file. (/mnt/stick/filename)
ENTER Script CopyFileFromUSBComplete ( CopyFileFromUSBFail should have been sent )
NM-server: pulse received
code = 0xffffffdd
coid = 0xffffffff
NM-server: pulse received
code = 0xffffffdf
coid = 0x40000021
EXIT Script CopyFileFromUSBComplete
CopyFileFromUSB does not fail
- dberezowski
- Posts: 65
- Joined: Wed Sep 08, 2010 4:03 pm
CopyFileFromUSB does not fail
- Attachments
-
- ScriptFileAccessDemo_20110622.db3
- Used to tests script I/O calls and error recovery.
- (3.15 MiB) Downloaded 13 times
- jtabb
- Enovation Controls Development
- Posts: 37
- Joined: Mon Apr 04, 2011 8:59 am
Re: CopyFileFromUSB does not fail
dberezowski,
I am working your bug and I am trying to best characterize it incorporating dwills comments over on the ScriptFileAccessDemo script errors thread.
I'll update you when I have more information to share.
Thanks for the find!
I am working your bug and I am trying to best characterize it incorporating dwills comments over on the ScriptFileAccessDemo script errors thread.
I'll update you when I have more information to share.
Thanks for the find!
jtabb
FW Murphy Development Team
FW Murphy Development Team
- jtabb
- Enovation Controls Development
- Posts: 37
- Joined: Mon Apr 04, 2011 8:59 am
Re: CopyFileFromUSB does not fail
dberezowski,
We incorporated this in our latest development build. I tested it this afternoon and showed that we now do send the fail and succeed events correctly. Look for this in the coming 2.3 release.
Thanks for the find.
We incorporated this in our latest development build. I tested it this afternoon and showed that we now do send the fail and succeed events correctly. Look for this in the coming 2.3 release.
Thanks for the find.
jtabb
FW Murphy Development Team
FW Murphy Development Team
- dberezowski
- Posts: 65
- Joined: Wed Sep 08, 2010 4:03 pm
Re: CopyFileFromUSB does not fail
And thank you for the excellent support!