[XS] Change in osmo-ttcn3-hacks[master]: testenv: fix passing env vars to daemons
osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43885?usp=email ) Change subject: testenv: fix passing env vars to daemons ...................................................................... testenv: fix passing env vars to daemons When running without podman, environment variables from the host are passed to the daemons started by testenv. This feature regressed by calling generate_env with the wrong parameter order, using envtype for podman: def generate_env(env=None, podman=False, envtype="binary_repo"): Fixes: SYS#8280 Fixes: 6cbec87b ("testenv: build package=no components with osmo-dev") Change-Id: I5b6423a6671d36d824e488f1443cb9c16358c955 --- M _testenv/testenv/daemons.py 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/85/43885/1 diff --git a/_testenv/testenv/daemons.py b/_testenv/testenv/daemons.py index e6085b6..3ee1e6d 100644 --- a/_testenv/testenv/daemons.py +++ b/_testenv/testenv/daemons.py @@ -67,7 +67,7 @@ daemons[section] = testenv.podman.exec_cmd_background(cmd, cwd=cwd, env=env, envtype=envtype) else: logging.debug(f"+ {cmd}") - daemons[section] = subprocess.Popen(cmd, cwd=cwd, env=testenv.cmd.generate_env(env, envtype)) + daemons[section] = subprocess.Popen(cmd, cwd=cwd, env=testenv.cmd.generate_env(env, envtype=envtype)) # Wait 200ms and check if it is still running time.sleep(0.2) -- To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43885?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: newchange Gerrit-Project: osmo-ttcn3-hacks Gerrit-Branch: master Gerrit-Change-Id: I5b6423a6671d36d824e488f1443cb9c16358c955 Gerrit-Change-Number: 43885 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith@sysmocom.de>
participants (1)
-
osmith