]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
supervisor: Drop job output 1902/head
authorZack Cerza <zack@redhat.com>
Fri, 17 Nov 2023 20:48:38 +0000 (13:48 -0700)
committerZack Cerza <zack@redhat.com>
Fri, 17 Nov 2023 20:49:19 +0000 (13:49 -0700)
It gets logged to its own file in the job archive.

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/dispatcher/supervisor.py

index c803fb7155ec2849290165396c0e19ea9bbf56c9..6af6f554a0ea80eb0a8f731a6ac705afc2a9048a 100644 (file)
@@ -148,7 +148,11 @@ def run_job(job_config, teuth_bin_path, archive_dir, verbose):
     arg.extend(['--', job_archive])
 
     log.debug("Running: %s" % ' '.join(arg))
-    p = subprocess.Popen(args=arg)
+    p = subprocess.Popen(
+        args=arg,
+        stdout=subprocess.DEVNULL,
+        stderr=subprocess.DEVNULL,
+    )
     log.info("Job archive: %s", job_config['archive_path'])
     log.info("Job PID: %s", str(p.pid))