Bug 760755 - v7-1.4 will traceback if modinfo fails to provide srcversion
Summary: v7-1.4 will traceback if modinfo fails to provide srcversion
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Hardware Certification Program
Classification: Retired
Component: Test Suite (tests)
Version: 1.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Greg Nichols
QA Contact: Guangze Bai
URL:
Whiteboard:
Depends On:
Blocks: 767775 773757
TreeView+ depends on / blocked
 
Reported: 2011-12-06 21:36 UTC by Rob Landry
Modified: 2015-02-08 21:37 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
a bug fix has been added to v7 1.5 that `info` test will not show python traceback if a module in-use doesn't have a srcversion entry.
Clone Of:
Environment:
Last Closed: 2012-06-05 21:36:49 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0711 0 normal SHIPPED_LIVE v7 bug fix and enhancement update 2012-06-06 01:26:37 UTC

Description Rob Landry 2011-12-06 21:36:57 UTC
Description of problem:


#
Traceback (most recent call last):
#
  File "/usr/bin/v7", line 45, in ?
#
    success = v7.do(args)
#
  File "/usr/share/v7/lib/v7/hardwaretest.py", line 193, in do
#
    result = self.commands[self.command]()
#
  File "/usr/share/v7/lib/v7/hardwaretest.py", line 645, in doRun
#
    return self._doRun(tests)       
#
  File "/usr/share/v7/lib/v7/hardwaretest.py", line 748, in _doRun
#
    returnValue = self.runTest(tmpDirectory, test, run, outputFilePath)
#
  File "/usr/share/v7/lib/v7/hardwaretest.py", line 1165, in runTest
#
    rv = test.run()
#
  File "/usr/share/v7/tests/info/info.py", line 448, in run
#
    if not self.runSubTest(self.checkModules, name="Modules", description="Check kernel modules"):
#
  File "/usr/share/v7/lib/v7/test.py", line 452, in runSubTest
#
    result = subtestFunction()
#
  File "/usr/share/v7/tests/info/info.py", line 200, in checkModules
#
    moduleFile = self.getModuleFile(module)
#
  File "/usr/share/v7/tests/info/info.py", line 314, in getModuleFile
#
    modInfoSrcVersion = Command("modinfo -F srcversion %s" % module).getString()
#
  File "/usr/share/v7/lib/v7/command.py", line 207, in getString
#
    result = self._getString(regex, regexGroup, singleLine, returnList=False)
#
  File "/usr/share/v7/lib/v7/command.py", line 164, in _getString
#
    raise V7CommandException(self, "no match for regular expression %s" % self.regex)
#
v7.command.V7CommandException: "modinfo -F srcversion nvidia" no match for regular expression None

Comment 2 Rob Landry 2012-01-11 22:49:39 UTC
The traceback should be addressed, though the test is still going to fail.

Comment 7 Caspar Zhang 2012-06-04 07:36:42 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
a bug fix has been added to v7 1.5 that `info` test will not show python traceback if a module in-use doesn't have a srcversion entry.

Comment 9 errata-xmlrpc 2012-06-05 21:36:49 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.

http://rhn.redhat.com/errata/RHBA-2012-0711.html


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