def __init__(self, methodName='runTest', name=None, params=None, base_logdir=None, job=None, runner_queue=None, ct_params=None): """ :note: methodName, name, base_logdir, job and runner_queue params are inherited from test.Test :param params: avocado/multiplexer params stored as `self.avocado_params`. :param ct_params: avocado-HealthCheckTest/cartesian_config params stored as `self.params`. """ self.bindir = data_dir.get_root_dir() self.iteration = 0 self.resultsdir = None self.file_handler = None self.background_errors = Queue.Queue() self.whiteboard = None self.casename = name super(HealthCheckTest, self).__init__(methodName=methodName, name=name, params=params, base_logdir=base_logdir, job=job, runner_queue=runner_queue) self.tmpdir = os.path.dirname(self.workdir) # Move self.params to self.avocado_params and initialize TempestTest # (cartesian_config) params self.avocado_params = self.params self.params = utils_params.Params(ct_params) self.resultsdir = self.logdir self.reportsdir = os.path.join(self.logdir, 'healthcheck.log') self.timeout = ct_params.get("test_timeout", self.timeout)
def __init__(self, methodName='runTest', name=None, params=None, base_logdir=None, job=None, runner_queue=None, ct_params=None): """ :note: methodName, name, base_logdir, job and runner_queue params are inherited from test.Test :param params: avocado/multiplexer params stored as `self.avocado_params`. :param ct_params: avocado-VMReliabilityTest/cartesian_config params stored as `self.params`. """ self.bindir = data_dir.get_root_dir() self.iteration = 0 self.file_handler = None self.background_errors = Queue.Queue() self.whiteboard = None self.casename = name super(VMReliabilityTest, self).__init__(methodName=methodName, name=name, params=params, base_logdir=base_logdir, job=job, runner_queue=runner_queue) self.tmpdir = os.path.dirname(self.workdir) # Move self.params to self.avocado_params and init VMReliabilityTest # (cartesian_config) params self.avocado_params = self.params self.params = utils_params.Params(ct_params)
def __init__(self, methodName='runTest', name=None, params=None, base_logdir=None, job=None, runner_queue=None, ct_params=None): """ :note: methodName, name, base_logdir, job and runner_queue params are inherited from test.Test :param params: avocado/multiplexer params stored as `self.avocado_params`. :param ct_params: avocado-cloudtest/cartesian_config params stored as `self.params`. """ self.bindir = data_dir.get_root_dir() self.iteration = 0 self.outputdir = None self.resultsdir = None self.logfile = None self.file_handler = None self.whiteboard = None super(BenchmarkTest, self).__init__(methodName=methodName, name=name, params=params, base_logdir=base_logdir, job=job, runner_queue=runner_queue) self.tmpdir = os.path.dirname(self.workdir) self.avocado_params = self.params self.params = utils_params.Params(ct_params) self.debugdir = self.logdir self.resultsdir = self.logdir self.timeout = ct_params.get("test_timeout", self.timeout)
def __init__(self, methodName='runTest', name=None, params=None, base_logdir=None, job=None, runner_queue=None, ct_params=None): self.bindir = data_dir.get_root_dir() self.iteration = 0 self.resultsdir = None self.file_handler = None self.background_errors = Queue.Queue() self.whiteboard = None self.casename = name super(SecurityTest, self).__init__(methodName=methodName, name=name, params=params, base_logdir=base_logdir, runner_queue=runner_queue, job=job) self.avocado_params = self.params self.params = utils_params.Params(ct_params) self.debugdir = self.logdir self.resultsdir = self.logdir self.timeout = ct_params.get("test_timeout", self.timeout)