Commit e10dbe66 authored by Samuel GAIST's avatar Samuel GAIST

[execution][subprocess] Use new configuration name option for database setup

parent a9640ebb
......@@ -175,7 +175,7 @@ class SubprocessExecutor(RemoteExecutor):
'databases_provider'))
def __create_db_process(self):
def __create_db_process(self, configuration_name=None):
databases_process = None
databases_configuration_path = None
database_port = None
......@@ -199,6 +199,9 @@ class SubprocessExecutor(RemoteExecutor):
if logger.getEffectiveLevel() <= logging.DEBUG:
cmd.insert(1, '--debug')
if configuration_name is not None:
cmd.append(configuration_name)
databases_process_stdout = tempfile.NamedTemporaryFile(delete=False)
databases_process_stderr = tempfile.NamedTemporaryFile(delete=False)
......@@ -312,7 +315,7 @@ class SubprocessExecutor(RemoteExecutor):
if self.loop_algorithm is not None:
if len(self.databases) > 0:
database_infos['loop_db'] = self.__create_db_process()
database_infos['loop_db'] = self.__create_db_process("loop")
loop_algorithm_port = utils.find_free_port()
cmd = [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment