There's still a problem with the optical write tests... on two systems tried so far (Dell E6420 201011-6843 and Lenovo W510 201101-6974) the test fails when run in checkbox. When run separately, there appears to be a problem fixating the disk. This causes wodim to exit with a failure, which causes the test to exit with a failure. Here are the messages when this is run manually on the Lenovo:
ubuntu@201101-6974:~$ sudo /usr/share/checkbox/scripts/optical_write_test /dev/sr0
Creating Temp directory and moving there ...
Now working in /tmp/optical-test ...
Getting sample files from /usr/share/example-content/ ...
Generating md5sums of sample files ...
Checking md5sums ...
How fast.ogg: OK
Josh Woodward - Swansong.ogg: OK
Creating ISO Image ...
I: -input-charset not specified, using utf-8 (detected in locale settings)
Total translation table size: 0
Total rockridge attributes bytes: 353
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 0
2736 extents written (5 MB)
Sleeping 10 seconds in case drive is not yet ready ...
Beginning image burn ...
wodim: No write mode specified.
wodim: Assuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'MATSHITA'
Identification : 'DVD-RAM UJ870A '
Revision : 'SB01'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd).
Driver flags : SWABAUDIO BURNFREE
Supported modes: PACKET SAO
Speed set to 11080 KB/s
Starting to write CD/DVD at speed 8.0 in real unknown mode for single session.
Last chance to quit, starting real write in 0 seconds. Operation starts.
Track 01: Total bytes read/written: 5603328/5603328 (2736 sectors).
Errno: 5 (Input/output error), flush cache scsi sendcmd: no error
CDB: 35 00 00 00 00 00 00 00 00 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 72 0B 00 00 00 00 00 0E 09 0C 00 00 00 03 00 00
Sense Key: 0x0 No Additional Sense, Segment 11
Sense Code: 0x00 Qual 0x03 (setmark detected) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 121.464s timeout 120s
Trouble flushing the cache
wodim: Cannot fixate disk.
Failed to burn ISO image
Attempting to clean up ...
Moving back to original location
Now residing in /home/ubuntu
Cleaning up ...
Usage: umount -h | -V
umount -a [-d] [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
umount [-d] [-f] [-r] [-n] [-v] special | node...
Ejecting spent media ...
eject: unable to eject, last error: Inappropriate ioctl for device
ubuntu@201101-6974:~$
"Needs fixing". Though the fixating problem may not be happening anymore (I didn't see it when testing just now) I do see a few problems.
- If I insert the disc and then run the test, it fails because the disc is already mounted. I had to unmount it in order to test. Granted, the test *does* instruct using a blank disk, but in my case it was a dvd+rw that had some files, maybe we should accomodate this use case.
- The test in checkbox points to /dev/cdrom, but on the two systems I had to recertify, /dev/cdrom does not exist, so the test fails outright.
I'll set this as triaged since we know what to do.