MCPcopy Create free account
hub / github.com/apache/cloudstack / start_marvin

Method start_marvin

tools/marvin/marvin/deployAndRun.py:230–251  ·  view source on GitHub ↗

Initialize the Marvin

(self)

Source from the content-addressed store, hash-verified

228
229 @VerifyAndExit("Marvin initialization failed, please check")
230 def start_marvin(self):
231 '''
232 Initialize the Marvin
233 '''
234 try:
235 obj_marvininit = MarvinInit(config_file=self.__configFile,
236 deploy_dc_flag=self.__deployFlag,
237 zone=self.__zone,
238 hypervisor_type=self.__hypervisorType,
239 user_logfolder_path=None)
240 if obj_marvininit and obj_marvininit.init() == SUCCESS:
241 self.__testClient = obj_marvininit.getTestClient()
242 self.__tcRunLogger = obj_marvininit.getLogger()
243 self.__parsedConfig = obj_marvininit.getParsedConfig()
244 self.__resultStream = obj_marvininit.getResultFile()
245 self.__logFolderPath = obj_marvininit.getLogFolderPath()
246 return SUCCESS
247 return FAILED
248 except Exception as e:
249 print("====Exception Occurred under start_marvin: %s ====" % \
250 GetDetailExceptionInfo(e))
251 return FAILED
252
253 def run_test_suites(self):
254 print("\n==== Started Running Test Cases ====")

Callers 2

do_deploydcMethod · 0.95
do_runtestMethod · 0.95

Calls 8

initMethod · 0.95
getTestClientMethod · 0.95
getLoggerMethod · 0.95
getParsedConfigMethod · 0.95
getResultFileMethod · 0.95
getLogFolderPathMethod · 0.95
MarvinInitClass · 0.90
GetDetailExceptionInfoFunction · 0.90

Tested by

no test coverage detected