Merge lp:~bladernr/checkbox/945178-make-auto-cd-read-test into lp:checkbox
Proposed by
Jeff Lane
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 1324 | ||||
Proposed branch: | lp:~bladernr/checkbox/945178-make-auto-cd-read-test | ||||
Merge into: | lp:checkbox | ||||
Diff against target: |
91 lines (+30/-6) 3 files modified
debian/changelog (+6/-1) jobs/optical.txt.in (+9/-0) scripts/optical_read_test (+15/-5) |
||||
To merge this branch: | bzr merge lp:~bladernr/checkbox/945178-make-auto-cd-read-test | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
TienFu Chen (community) | Approve | ||
Jeff Lane | Needs Resubmitting | ||
Review via email: mp+97646@code.launchpad.net |
Description of the change
Created an automated version of optical/read to remove the last manual job from the server whitelists.
To post a comment you must log in.
I know this patch is to the job file, not the script, optical_read_test.
But I take a look at optical_read_test, found few issue should be taken care in the script.
command "optical_read_test /dev/cdrom" work fine while /dev/cdrom is available.
Few exceptions here:
1)
command: optical_read_test /dev/cdrom (but /dev/cdrom is not existed actually).
command passed and return 0.
2)
command: optical_read_test
command passed and return 0.
3) ------- ------- ------- ------- ------- ------- ------- ------- ------- --- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---
Not sure the device name /dev/cdrom is always reliable. I would suggest we use the device name from "wodim --devices"
Sample output is like:
wodim: Overview of accessible drives (1 found) :
-------
0 dev='/dev/sg1' rwrw-- : 'Slimtype' 'DVD A DS8A4S'
-------
We can take the dev='xxxx' part.
4) optical_read_test can handle multi cd-rom test.(yes,I don't understand why so many cd-roms installed on server too), But the job files should be changed too. We may have job name like: optical/read_*
So now, I would say 1) 2) should be fixed. 3) 4) can be taken care later.