Bug 1254759 - python traceback on TypeError running dvd test via CLI
Summary: python traceback on TypeError running dvd test via CLI
Keywords:
Status: CLOSED ERRATA
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: 2015-08-18 19:12 UTC by Brian Brock
Modified: 2015-08-20 12:08 UTC (History)
1 user (show)

Fixed In Version: 1.6.6-20150818.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-20 12:08:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1648 0 normal SHIPPED_LIVE redhat-certification-hardware bug fix and enhancement update 2015-08-20 16:08:30 UTC

Description Brian Brock 2015-08-18 19:12:49 UTC
Running the dvd test from the command line throws a TypeError.

redhat-certification-1.0-20150813.el6
redhat-certification-hardware-1.6.6-20150817.el6

reliably reproduced with no workarounds yet known

Steps to Reproduce:
1. run rhcert-backend plan
2. run rhcert-backend run -t dvd
3.

Actual results:
TypeError and traceback

Expected results:
no error, dvd test runs to completion

Additional info:
Running dvd on device=sr0 udi=/devices/pci0000:00/0000:00:1f.2/host1/target1:0:0/1:0:0:0/block/sr0 

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

Would you like to test dvd-rw media? (yes|no) no
response: no
response: False
Please choose the media to be tested: dvd-r
response: dvd-r
Traceback (most recent call last):
  File "/usr/bin/rhcert-backend", line 37, in <module>
    success = rhcertBackend.do(args)
  File "/usr/lib/python2.6/site-packages/rhcert/client/backend.py", line 188, in do
    result = self.commands[self.command]()
  File "/usr/lib/python2.6/site-packages/rhcert/client/harness.py", line 409, in doRun
    return self._doRun(testDocuments)
  File "/usr/lib/python2.6/site-packages/rhcert/client/harness.py", line 552, in _doRun
    returnValue = self.runTest(logDirectory, testDocument, runDocument, outputFilePath)
  File "/usr/lib/python2.6/site-packages/rhcert/client/harness.py", line 998, in runTest
    rv = test.run()
  File "/usr/lib/python2.6/site-packages/rhcert/suites/hwcert/tests/dvd/dvd.py", line 116, in run
    self.getMediaChoice()
  File "/usr/lib/python2.6/site-packages/rhcert/suites/hwcert/hwcert/opticalDiskTest.py", line 115, in getMediaChoice
    choice = self.prompt("Please choose the media to be tested: ", map(self.printMediaName, self.supportedMedia))
  File "/usr/lib/python2.6/site-packages/rhcert/testUI.py", line 68, in prompt
    return self.ui.prompt(message, validation=validation, default=default)
  File "/usr/lib/python2.6/site-packages/rhcert/commandLineUI.py", line 76, in prompt
    error = validation(response.strip())
TypeError: 'list' object is not callable

Comment 3 Brian Brock 2015-08-18 21:50:43 UTC
fix verified in redhat-certification-hardware-1.6.6-20150818.el6

Comment 5 errata-xmlrpc 2015-08-20 12:08:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-1648.html


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