Ejemplo n.º 1
0
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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 def setUp(self):
     if not(self.in_bench_mode):
         InfraLauncher.launch(2)