def infraup(request): from distark.majordaemon.infralauncher import InfraLauncher def run_only_at_session_end(): print "\nfinalizing session" InfraLauncher.stop() if pytest.config.getoption('confpath') is not None: if len(pytest.config.getoption('confpath')) > 0: confpath = pytest.config.getoption('confpath')[0] print "Launch Infra with conf:", confpath InfraLauncher.launch(confpath, 2) request.addfinalizer(run_only_at_session_end)
def tearDownBench(self): InfraLauncher.stop() self.logd("teardown\n")
def setUpBench(self): """Setting up test.""" self.label="testing different services" + "\n" self.mode='bench' # self.server_url = self.conf_get('main', 'url') InfraLauncher.launch(2)
def tearDown(self): if not(self.in_bench_mode): InfraLauncher.stop()
def setUp(self): if not(self.in_bench_mode): InfraLauncher.launch(2)
def run_only_at_session_end(): print "\nfinalizing session" InfraLauncher.stop()