From 529f1fdcb25e745806259c196a65a6dd5e12b085 Mon Sep 17 00:00:00 2001 From: Kyr Shatskyy Date: Thu, 16 Jan 2025 19:49:23 +0100 Subject: [PATCH] dispatcher: passthrough environment variables Signed-off-by: Kyr Shatskyy --- teuthology/dispatcher/__init__.py | 1 + teuthology/dispatcher/supervisor.py | 1 + 2 files changed, 2 insertions(+) diff --git a/teuthology/dispatcher/__init__.py b/teuthology/dispatcher/__init__.py index 59f8ae327..f665582cf 100644 --- a/teuthology/dispatcher/__init__.py +++ b/teuthology/dispatcher/__init__.py @@ -174,6 +174,7 @@ def main(args): run_args, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, + env=os.environ, ) job_procs.add(job_proc) log.info('Job supervisor PID: %s', job_proc.pid) diff --git a/teuthology/dispatcher/supervisor.py b/teuthology/dispatcher/supervisor.py index 83e6d997c..b0ed908f1 100644 --- a/teuthology/dispatcher/supervisor.py +++ b/teuthology/dispatcher/supervisor.py @@ -146,6 +146,7 @@ def run_job(job_config, teuth_bin_path, archive_dir, verbose): args=arg, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, + env=os.environ, ) log.info("Job archive: %s", job_config['archive_path']) log.info("Job PID: %s", str(p.pid))