Skip to content
Snippets Groups Projects
Commit ecaaa18a authored by Erik von Reis's avatar Erik von Reis
Browse files

Integration test modified to take environment variables for processes

parent 5b3ee540
No related branches found
No related tags found
No related merge requests found
......@@ -138,7 +138,7 @@ class Process(object):
FAILED = 2
STOPPED = 3
def __init__(self, executable_name, arguments:typing.Sequence=[], exit_codes:typing.Sequence=(0,)):
def __init__(self, executable_name, arguments:typing.Sequence=[], exit_codes:typing.Sequence=(0,), env=None):
self.__name = "{0}__{1}".format(state.get_unique_number(), executable_name)
self.__executable = state.get_executable(executable_name)
self.__arguments = arguments
......@@ -154,6 +154,7 @@ class Process(object):
self.__is_failed = threading.Event()
self.__ignored = False
self.__process = None
self.__env = env
state.register_process(self)
......@@ -236,7 +237,7 @@ class Process(object):
bufsize=0,
stdout=stdout,
stderr=stderr,
env=None) as p:
env=self.__env) as p:
with self.__process_lock:
self.__process = p
response_queue.put(Process.RUNNING)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment