Merge lp:~bladernr/checkbox/1153894-clarify-mediacard-instructions into lp:checkbox
Proposed by
Jeff Lane
Status: | Merged |
---|---|
Approved by: | Zygmunt Krynicki |
Approved revision: | 2105 |
Merged at revision: | 2115 |
Proposed branch: | lp:~bladernr/checkbox/1153894-clarify-mediacard-instructions |
Merge into: | lp:checkbox |
Diff against target: |
152 lines (+46/-20) 3 files modified
debian/changelog (+5/-0) jobs/mediacard.txt.in (+13/-9) scripts/removable_storage_test (+28/-11) |
To merge this branch: | bzr merge lp:~bladernr/checkbox/1153894-clarify-mediacard-instructions |
Related bugs: | |
Related blueprints: |
One Hundred Papercuts will make Ubuntu shine
(Essential)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zygmunt Krynicki (community) | Approve | ||
Jeff Lane | Needs Resubmitting | ||
Review via email: mp+162259@code.launchpad.net |
Description of the change
Clarifies the SD/SDHC mediacard instructions to specify UNLOCKED cards. At least one user apparently tried running storage tests against a locked SD card causing an obvious failure.
To post a comment you must log in.
On further contemplation, I also took the liberty of adding better error handling to trap the OSError that is thrown when users try this test on locked SD cards and provide better output than a traceback. I also added some error handling to take care of the math that throws a ZeroDivisionError when we're unable to write data to the devices.
New output on a failed device looks like this: klaatu: ~/development/ git-workspace/ checkbox$ ./scripts/ removable_ storage_ test --memorycard sdio bladernr/ 5747-AD2E : None bits/s ------- ------ bladernr/ 5747-AD2E/ tmp3_qmnf. 0 for writing. bladernr/ 5747-AD2E/ tmp3_qmnf. 0' bladernr/ 5747-AD2E/ tmp3_qmnf. 0 bladernr/ 5747-AD2E/ tmp3_qmnf. 0 bladernr/ 5747-AD2E/ tmp3_qmnf. 0' root:Completed 1 test iterations, but there were errors
bladernr@
Found the following mounted sdio partitions:
/dev/mmcblk0p1 : /media/
-------
/dev/mmcblk0p1 (Total Data Size / iteration: 1.0005 MB):
ERROR:root:Unable to open /media/
ERROR:root: [Errno 30] Read-only file system: '/media/
ERROR:root:Failed to copy /tmp/tmp3_qmnf to /media/
ERROR:root:Unable to remove tempfile /media/
ERROR:root: [Errno 30] Read-only file system: '/media/
[Iteration 0] Average Speed: 0.0000
Summary:
Total Data Written: 1.0005 MB
Total Time to write: 0.0000 secs
Average Write Time: 0.0000 secs
Average Write Speed: 0.0000 MB/s
WARNING: