Author: gnichols Date: 2010-08-18 13:41:40 +0000 (Wed, 18 Aug 2010) New Revision: 638
Modified: trunk/tests/info/info.py Log: 620672 - test suite should check for SELinux status
Modified: trunk/tests/info/info.py =================================================================== --- trunk/tests/info/info.py 2010-08-18 13:38:25 UTC (rev 637) +++ trunk/tests/info/info.py 2010-08-18 13:41:40 UTC (rev 638) @@ -43,6 +43,7 @@ rpms = [self.redHatRelease.getKernelDevelRPMName()] else: rpms = ["kabi-whitelists"] + rpms.append("policycoreutils") return rpms
def checkKernel(self): @@ -89,6 +90,18 @@ success = False
return success + + def checkSELinux(self): + success = True + try: + selinuxParams = Command("/usr/sbin/sestatus").echo() + except V7CommandException, exception: + print "Error: could not determine selinux parameters" + print exception + success = False + + return success +
def checkV7(self): rpmVerify = Command("rpm -V --nomtime --nomode --nocontexts v7") @@ -375,14 +388,17 @@ def run(self):
success = True - if not self.runSubTest(self.checkKernel, name="Kernel", description="Check OS kernel build, version"): + if not self.runSubTest(self.checkV7, name="Verify v7", description="Verify the v7 installation"): success = False
- if not self.runSubTest(self.checkV7, name="Verify v7", description="Verify the v7 installation"): + if not self.runSubTest(self.checkKernel, name="Kernel", description="Check OS kernel build, version"): success = False
if not self.runSubTest(self.checkModules, name="Modules", description="Check kernel modules"): success = False + + if not self.runSubTest(self.checkSELinux, name="SE Linux", description="Capture SE Linux status"): + success = False
if not self.runSubTest(self.generateSystemReport, name="System Report", description="generate system report"): success = False
v7-commits@lists.stg.fedorahosted.org