Author: gnichols
Date: 2012-03-02 18:26:51 +0000 (Fri, 02 Mar 2012)
New Revision: 1196
Modified:
trunk/v7/kernelInfo.py
Log:
532557 - test suite should alarm operator and fail test runs on non GA kernel
Modified: trunk/v7/kernelInfo.py
===================================================================
--- trunk/v7/kernelInfo.py 2012-03-02 18:26:12 UTC (rev 1195)
+++ trunk/v7/kernelInfo.py 2012-03-02 18:26:51 UTC (rev 1196)
@@ -30,7 +30,7 @@
def getRelease(self, release):
for releaseElement in self.getChildElements(Tags.release):
- if releaseElement.getAttribute(Attributes.number) == release:
+ if releaseElement.getAttribute(Attributes.number) == str(release):
return releaseElement
return None
@@ -39,17 +39,17 @@
releaseElement = self.getRelease(release)
if releaseElement:
for element in releaseElement.childNodes:
- if element.nodeName == Tags.update and element.getAttribute(Attributes.number) == update:
+ if element.nodeName == Tags.update and element.getAttribute(Attributes.number) == str(update):
return element.getAttribute(Attributes.kernel)
return None
if __name__ == "__main__":
info = KernelInfo("kernelInfo.xml")
- for release in ['5', '6']:
+ for release in [5, 6]:
update = 0
while True:
- kernel = info.getGAKernel(release, "%s" % update)
+ kernel = info.getGAKernel(release, update)
if not kernel:
break
print "RHEL %s.%s: %s" % (release, update, kernel)