]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Catch OSError if script isn't in $PATH
authorZack Cerza <zack@cerza.org>
Mon, 16 Dec 2013 19:34:37 +0000 (13:34 -0600)
committerZack Cerza <zack@cerza.org>
Mon, 16 Dec 2013 19:34:37 +0000 (13:34 -0600)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/queue.py

index d95ea15242fd8f1a60f769945b971852e64ca982..d4da2ea60dceb23fab81beabf62ca03ef0a95223 100644 (file)
@@ -225,7 +225,11 @@ def run_with_watchdog(process, job_config):
                 '-j',
                 job_info['job_id'],
                 ]
-        subprocess.Popen(args).wait()
+        try:
+            subprocess.Popen(args).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")
     else:
         # Let's make sure that paddles knows the job is finished. We don't know
         # the status, but if it was a pass or fail it will have already been