Bug 1040087 - Can't exit disc tests cleanly after start
Summary: Can't exit disc tests cleanly after start
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Certification Program
Classification: Red Hat
Component: redhat-certification-hardware
Version: 1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: brose
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-10 16:57 UTC by Brian Brock
Modified: 2017-04-23 03:45 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-23 03:45:11 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Brian Brock 2013-12-10 16:57:57 UTC
Description of problem:
When the cd-rom or dvd test is launched interactively, that test ignores user input to skip the test.  Selecting 'n' does not abort the test run attempt, and instead returns with a prompt about which (non-existent) media to test.  There is no obvious choice for testing 'none' or '0' devices

  Your device /dev/sr0 supports cd-rw, cd-r, cd-rom

Would you like to test cd-rw media? (y|n) n
response: n
Please choose the media to be tested:  (cd-rw|cd-r|cd-rom)
Please enter a response
Please choose the media to be tested:  (cd-rw|cd-r|cd-rom) none
response: none
Error: could not determine media type

...

Warning: Can not turn off the automount and/or autobrowse for removable media.

  Your device /dev/sr0 supports dvd-rw, dvd+rw, dvd-r, dvd+r, dvd

Would you like to test dvd-rw media? (y|n) n
response: n
Please choose the media to be tested:  (dvd-rw|dvd+rw|dvd-r|dvd+r|dvd)
Please enter a response
Please choose the media to be tested:  (dvd-rw|dvd+rw|dvd-r|dvd+r|dvd) none
response: none
Error: could not determine media type
copying attachments...

...


$ hwc print | grep sr0
cdrom   sr0     host1/target1:0:0/1:0:0:0/block/sr0  - FAIL
bluray  sr0     host1/target1:0:0/1:0:0:0/block/sr0  - FAIL
dvd     sr0     host1/target1:0:0/1:0:0:0/block/sr0  - FAIL



Version-Release number of selected component (if applicable):
hwcert-client-1.7.0-20131203.el7.noarch

How reproducible:
consistent

Steps to Reproduce:
1. hwcert-backend plan on a system with dvd / cd drive
2. hwcert-backend run -t {cdrom,bluray,dvd}
3.

Actual results:
can't exit the test early


Expected results:
Test doesn't prompt for type of media after user enters 'n' to not continue


Additional info:


Note You need to log in before you can comment on or make changes to this bug.