]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
call wait() on the teuthology-results Popen object
authorZack Cerza <zack@cerza.org>
Fri, 17 Jan 2014 16:05:21 +0000 (10:05 -0600)
committerZack Cerza <zack@cerza.org>
Fri, 17 Jan 2014 16:05:21 +0000 (10:05 -0600)
This ought to fix the issue where zombie teuthology-results processes
stick around.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/queue.py

index 60b438e9aabb8563e0cd7912a9a6f9b28d7caa14..89f5690edebb7f9156ecdbb8e13948e3a5bafb4f 100644 (file)
@@ -200,7 +200,7 @@ def worker(ctx):
                 '--name',
                 job_config['name'],
             ]
-            subprocess.Popen(args=args)
+            subprocess.Popen(args=args).wait()
         else:
             log.debug('Creating archive dir...')
             safepath.makedirs(ctx.archive_dir, safe_archive)