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 644339 Details for
Bug 876290
Error: unknown device source kudzu on v7 submit
[?]
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]
patch to re-introduce classes for parsing kudzu results from FV guests
kudzu.patch (text/plain), 2.24 KB, created by
Greg Nichols
on 2012-11-13 19:29:59 UTC
(
hide
)
Description:
patch to re-introduce classes for parsing kudzu results from FV guests
Filename:
MIME Type:
Creator:
Greg Nichols
Created:
2012-11-13 19:29:59 UTC
Size:
2.24 KB
patch
obsolete
>diff --git a/v7/device.py b/v7/device.py >index 0e15d5c..6ed3c6a 100644 >--- a/v7/device.py >+++ b/v7/device.py >@@ -152,3 +152,28 @@ class UdevDevice(Device): > > #otherwise > return "" >+ >+# still needed as fv_ tests log hardware with kudzu >+class KudzuDevice(Device): >+ def __init__(self, properties=None): >+ Device.__init__(self, None, properties=properties) >+ self.udi = self.getProperty("udi") >+ >+ def getSource(self): >+ return Constants.kudzu >+ >+ def getProduct(self): >+ return "" >+ >+ def write(self, file): >+ separator = " : " >+ quote = "\'" >+ file.write("\'class\' : \'%s\'\n" % self.getClass()) >+ keys = self.properties.keys() >+ keys.sort() >+ for key in keys: >+ file.write(" %s%s%s%s" % (quote, key, quote, separator)) >+ if self.properties[key]: >+ file.write("%s%s%s" % (quote, self.properties[key], quote)) >+ file.write("\n") >+ file.write("\n\n") >diff --git a/v7/documentbase.py b/v7/documentbase.py >index ccae546..4cca768 100644 >--- a/v7/documentbase.py >+++ b/v7/documentbase.py >@@ -20,7 +20,7 @@ from xml.dom.minidom import getDOMImplementation, parse > import xml.dom.ext > from tags import Tags, Attributes, Constants > import version >-from device import Device, HalDevice, ProcDevice, UdevDevice >+from device import Device, HalDevice, ProcDevice, UdevDevice, KudzuDevice > from command import Command, V7CommandException > > class DocumentWrapper: >@@ -191,6 +191,9 @@ class DocumentWrapper: > return ProcDevice(properties) > elif source == Constants.udev: > return UdevDevice(properties) >+ # might need to parse kudzu devices via FV guest logging >+ elif source == Constants.kudzu: >+ return KudzuDevice(properties) > > # should never, ever get here! > print "Error: unknown device source %s" % source >diff --git a/v7/tags.py b/v7/tags.py >index 23b3dc3..237f3e2 100644 >--- a/v7/tags.py >+++ b/v7/tags.py >@@ -201,6 +201,7 @@ class Constants: > results="results" > all="all" > clean="clean" >+ kudzu="kudzu" # still needed due to parsing fv results from RHEL5 guests > > class SystemFunction: > system = "system"
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 876290
:
644301
| 644339