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)
| 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 | """ |
nothing calls this directly
no test coverage detected