Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 678797 Details for
Bug 895407
v7-1.6 is missing dmi decode output in info's hardware info
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
info patch moving dmidecode to a subtest and changing its output logging
info.patch (text/plain), 1.90 KB, created by
Greg Nichols
on 2013-01-15 14:38:27 UTC
(
hide
)
Description:
info patch moving dmidecode to a subtest and changing its output logging
Filename:
MIME Type:
Creator:
Greg Nichols
Created:
2013-01-15 14:38:27 UTC
Size:
1.90 KB
patch
obsolete
>diff --git a/tests/info/info.py b/tests/info/info.py >index 3e76f2f..bc60243 100644 >--- a/tests/info/info.py >+++ b/tests/info/info.py >@@ -29,6 +29,7 @@ class InfoTest(Test): > > def __init__(self): > Test.__init__(self, name="info") >+ self.dmidecode = "/usr/sbin/dmidecode" > self.deviceClass = DeviceClass.system > self.mandatory = Constants.post # required at the end of each run > # what RHEL are we testing? >@@ -551,15 +552,19 @@ class InfoTest(Test): > # if that fails, leave off --no-progressbar > if not result: > result = self.__processSystemReport("sosreport --batch -n selinux") >- >- >- dmidecode = "/usr/sbin/dmidecode" >- if os.path.exists(dmidecode): >- if not os.system(dmidecode) is 0: >- print "Note: %s returned an error." % (dmidecode) >- > > return result >+ >+ def logDmidecode(self): >+ if os.path.exists(self.dmidecode): >+ try: >+ Command(self.dmidecode).echo() >+ except V7CommandException, e: >+ print "Error: %s failed." % self.dmidecode >+ print e >+ return False >+ # otherwise >+ return True > > def __processSystemReport(self, reportCommand): > pipe = os.popen("echo -e '\n\n' | %s -k rpm.rpmva=off 2>&1" % reportCommand) >@@ -613,6 +618,9 @@ class InfoTest(Test): > > if not self.runSubTest(self.checkSELinux, name="SE Linux", description="Capture SE Linux status"): > success = False >+ >+ if os.path.exists(self.dmidecode) and not self.runSubTest(self.logDmidecode, name="dmidecode", description="Log dmidecode output"): >+ success = False > > if not self.runSubTest(self.generateSystemReport, name="System Report", description="generate system report"): > success = False
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 895407
: 678797