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

Method configure

tools/marvin/marvin/marvinPlugin.py:73–92  ·  view source on GitHub ↗

enable the marvin plugin when the --with-marvin directive is given to nose. The enableOpt value is set from the command line directive and self.enabled (True|False) determines whether marvin's tests will run. By default non-default plugins like marvin will be disabled

(self, options, conf)

Source from the content-addressed store, hash-verified

71 Plugin.__init__(self)
72
73 def configure(self, options, conf):
74 """enable the marvin plugin when the --with-marvin directive is given
75 to nose. The enableOpt value is set from the command line directive and
76 self.enabled (True|False) determines whether marvin's tests will run.
77 By default non-default plugins like marvin will be disabled
78 """
79 self.enabled = True
80 if hasattr(options, self.enableOpt):
81 if not getattr(options, self.enableOpt):
82 self.enabled = False
83 return
84 self.__configFile = options.configFile
85 self.__deployDcFlag = options.deployDc
86 self.__zoneForTests = options.zone
87 self.__hypervisorType = options.hypervisor_type
88 self.__userLogPath = options.logFolder
89 self.conf = conf
90 if self.startMarvin() == FAILED:
91 print("\nStarting Marvin Failed, exiting. Please Check")
92 exit(1)
93
94 def options(self, parser, env):
95 """

Callers

nothing calls this directly

Calls 2

startMarvinMethod · 0.95
exitFunction · 0.85

Tested by

no test coverage detected