OK, so testing this, with checkbox 0.13.7 installed, I ran the test command from the above command. It failed with something relating to udisks not being present. It seems that the usb tests require udisks, so I installed, then retested.
I got a failure and this blurb in the submission.xml file:
<question name="usb/storage-preinserted">
<answer type="multiple_choice">fail</answer>
<answer_choices>
<value type="str">fail</value>
<value type="str">pass</value>
<value type="str">uninitiated</value>
<value type="str">unresolved</value>
<value type="str">unsupported</value>
<value type="str">untested</value>
</answer_choices>
<comment>mount: only root can do that
</comment>
</question>
Then I upgraded to checkbox 0.13.8:
$ dpkg --list 'checkbox*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==============-==============-============================================
ii checkbox 0.13.8 System testing application
ii checkbox-cli 0.13.8 Command line interface for checkbox
un checkbox-gtk <none> (no description available)
On rerunning the test command, the result is now passed:
<question name="usb/storage-preinserted">
<answer type="multiple_choice">pass</answer>
<answer_choices>
<value type="str">fail</value>
<value type="str">pass</value>
<value type="str">uninitiated</value>
<value type="str">unresolved</value>
<value type="str">unsupported</value>
<value type="str">untested</value>
</answer_choices>
<comment>--------------------
removable devices currently mounted:
None
removable devices currently not mounted:
/dev/sdb1
--------------------
Now mounting /dev/sdb1 on /tmp/tmpFtzHPt
Found the following mounted ['usb'] partitions:
/dev/sdb1 : /tmp/tmpFtzHPt
--------------------
Running ['usb'] file transfer test for 1 iterations
Creating Temp Data file
File name is :/tmp/tmpBPZSM5
File size is 1048576 bytes
Parent hash is: 6af0821bb5cdb072a93d3fb40b904c59
Copying /tmp/tmpBPZSM5 to /tmp/tmpFtzHPt
Hashing copy on /tmp/tmpFtzHPt
Hash of /tmp/tmpFtzHPt/tmpBPZSM5 on /tmp/tmpFtzHPt is 6af0821bb5cdb072a93d3fb40b904c59
Now umounting /dev/sdb1 on /tmp/tmpFtzHPt
Successfully completed 1 ['usb'] file transfer test iterations
</comment>
</question>
I'll mark this bug verification-done, with the comments that udisks needs to be present (not a problem for ubuntu desktop but may be needed explicitly on server or variants), and the test command needed a minor tweak as it was referring to an incorrect job.
OK, so testing this, with checkbox 0.13.7 installed, I ran the test command from the above command. It failed with something relating to udisks not being present. It seems that the usb tests require udisks, so I installed, then retested.
I got a failure and this blurb in the submission.xml file:
<question name="usb/ storage- preinserted" > choice" >fail</ answer> >fail</ value> >pass</ value> >uninitiated< /value> >unresolved< /value> >unsupported< /value> >untested< /value>
<answer type="multiple_
<answer_choices>
<value type="str"
<value type="str"
<value type="str"
<value type="str"
<value type="str"
<value type="str"
</answer_choices>
<comment>mount: only root can do that
</comment>
</question>
Then I upgraded to checkbox 0.13.8:
$ dpkg --list 'checkbox*' Unknown/ Install/ Remove/ Purge/Hold Not/Inst/ Conf-files/ Unpacked/ halF-conf/ Half-inst/ trig-aWait/ Trig-pend /Reinst- required (Status,Err: uppercase=bad) ======= ====-== ======= =====-= ======= ======= ======= ======= ======= ======= =
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii checkbox 0.13.8 System testing application
ii checkbox-cli 0.13.8 Command line interface for checkbox
un checkbox-gtk <none> (no description available)
On rerunning the test command, the result is now passed:
<question name="usb/ storage- preinserted" > choice" >pass</ answer> >fail</ value> >pass</ value> >uninitiated< /value> >unresolved< /value> >unsupported< /value> >untested< /value> ------- ------- ------ ------- ------ ------- ------ 2a93d3fb40b904c 59 tmpBPZSM5 on /tmp/tmpFtzHPt is 6af0821bb5cdb07 2a93d3fb40b904c 59
<answer type="multiple_
<answer_choices>
<value type="str"
<value type="str"
<value type="str"
<value type="str"
<value type="str"
<value type="str"
</answer_choices>
<comment>
removable devices currently mounted:
None
removable devices currently not mounted:
/dev/sdb1
-------
Now mounting /dev/sdb1 on /tmp/tmpFtzHPt
Found the following mounted ['usb'] partitions:
/dev/sdb1 : /tmp/tmpFtzHPt
-------
Running ['usb'] file transfer test for 1 iterations
Creating Temp Data file
File name is :/tmp/tmpBPZSM5
File size is 1048576 bytes
Parent hash is: 6af0821bb5cdb07
Copying /tmp/tmpBPZSM5 to /tmp/tmpFtzHPt
Hashing copy on /tmp/tmpFtzHPt
Hash of /tmp/tmpFtzHPt/
Now umounting /dev/sdb1 on /tmp/tmpFtzHPt
Successfully completed 1 ['usb'] file transfer test iterations
</comment>
</question>
I'll mark this bug verification-done, with the comments that udisks needs to be present (not a problem for ubuntu desktop but may be needed explicitly on server or variants), and the test command needed a minor tweak as it was referring to an incorrect job.