From: Zack Cerza Date: Mon, 16 Dec 2013 20:22:22 +0000 (-0600) Subject: Use shell=True to call teuthology-report X-Git-Tag: 1.1.0~1732 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a0eb1a8e8c6f2f01b210558a51309ba50e3ce93a;p=teuthology.git Use shell=True to call teuthology-report Signed-off-by: Zack Cerza --- diff --git a/teuthology/queue.py b/teuthology/queue.py index d4da2ea60..851693371 100644 --- a/teuthology/queue.py +++ b/teuthology/queue.py @@ -219,14 +219,11 @@ def run_with_watchdog(process, job_config): # The job ran with a teuthology branch that may not have the reporting # feature. Let's call teuthology-report (which will be from the master # branch) to report the job manually. - args = ['teuthology-report', - '-r', - job_info['name'], - '-j', - job_info['job_id'], - ] + cmd = "teuthology-report -r {run_name} -j {job_id}".format( + run_name=job_info['name'], + job_id=job_info['job_id']) try: - subprocess.Popen(args).wait() + subprocess.Popen(cmd, shell=True).wait() log.warn("Reported results via the teuthology-report command") except OSError: log.warn("Tried to run teuthology-report but it wasn't in $PATH")