Author: gnichols Date: 2010-01-22 21:07:51 +0000 (Fri, 22 Jan 2010) New Revision: 322
Modified: trunk/v7/hardwaretest.py Log: 546404 - Avoid running any tests when invalid test name is used
Modified: trunk/v7/hardwaretest.py =================================================================== --- trunk/v7/hardwaretest.py 2010-01-22 21:07:04 UTC (rev 321) +++ trunk/v7/hardwaretest.py 2010-01-22 21:07:51 UTC (rev 322) @@ -529,6 +529,17 @@ def doRun(self): if not self.doPlan(): return False + + #check tests + testNotFound = False + for testName in self.options.test: + if not self.certification.getTest(testName): + print "Error: No such test "" + testName + """ + testNotFound = True + if testNotFound: + return False + # otherwise +
tests = self.certification.getFilteredTests(self.options)
v7-commits@lists.stg.fedorahosted.org