(self)
| 251 | return FAILED |
| 252 | |
| 253 | def run_test_suites(self): |
| 254 | print("\n==== Started Running Test Cases ====") |
| 255 | xunit_out_path = "/tmp/marvin_xunit_out" + \ |
| 256 | str(random.randrange(1, 10000)) + ".xml" |
| 257 | marvin_tc_run_cmd = "nosetests-2.7 -s --with-marvin --marvin-config=%s --with-xunit --xunit-file=%s %s -a tags=advanced, required_hardware=%s --zone=%s --hypervisor=%s" |
| 258 | if os.path.isfile(self.__tcPath): |
| 259 | marvin_tc_run_cmd = marvin_tc_run_cmd % (self.__configFile, |
| 260 | xunit_out_path, self.__requiredHw, self.__zone, self.__hypervisorType) |
| 261 | if os.path.isdir(self.__tcPath): |
| 262 | marvin_tc_run_cmd = marvin_tc_run_cmd % (self.__configFile, |
| 263 | xunit_out_path, self.__requiredHw, self.__zone, self.__hypervisorType) |
| 264 | os.system(marvin_tc_run_cmd) |
| 265 | ''' |
| 266 | engine = TestCaseExecuteEngine(self.__testClient, |
| 267 | self.__parsedConfig, |
| 268 | tc_logger=self.__tcRunLogger) |
| 269 | if os.path.isfile(self.__tcPath): |
| 270 | engine.loadTestsFromFile(self.__tcPath) |
| 271 | elif os.path.isdir(self.__tcPath): |
| 272 | engine.loadTestsFromDir(self.__tcPath) |
| 273 | engine.run() |
| 274 | ''' |
| 275 | print("\n==== Running Test Cases Successful ====") |
| 276 | |
| 277 | @VerifyAndExit( |
| 278 | "cmd failed, may be invalid input options, please check help") |
no outgoing calls
no test coverage detected