From bd587dd242551bc0549f649ca48b1cd9ea6265e0 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Mon, 20 Feb 2023 12:40:14 -0700 Subject: [PATCH] dispatcher: Keep job output out of stdout/err If we want the dispatcher to run under systemd, let's keep its output a bit more terse. The logfile will still be available. Signed-off-by: Zack Cerza --- teuthology/dispatcher/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/teuthology/dispatcher/__init__.py b/teuthology/dispatcher/__init__.py index ae5936c4c4..6684d67d29 100644 --- a/teuthology/dispatcher/__init__.py +++ b/teuthology/dispatcher/__init__.py @@ -181,7 +181,11 @@ def main(args): run_args.extend(["--job-config", job_config_path]) try: - job_proc = subprocess.Popen(run_args) + job_proc = subprocess.Popen( + run_args, + stdout=subprocess.DEVNULL, + stdin=subprocess.STDOUT, + ) job_procs.add(job_proc) log.info('Job supervisor PID: %s', job_proc.pid) except Exception: -- 2.39.5