From 0c2bee1514c1b1e65ca5d52459062e5a45da2d7b Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Mon, 29 Aug 2011 16:47:22 -0700 Subject: [PATCH] valgrind: don't run valgrind_post if there's no valgrind Signed-off-by: Greg Farnum --- teuthology/task/ceph.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/teuthology/task/ceph.py b/teuthology/task/ceph.py index 7b61c5686f371..67ec9895d0a5b 100644 --- a/teuthology/task/ceph.py +++ b/teuthology/task/ceph.py @@ -225,6 +225,8 @@ def valgrind_post(ctx, config): try: yield finally: + if not config.get('valgrind'): + return lookup_procs = list() val_path = '/tmp/cephtest/archive/log/{val_dir}/*'.format(val_dir=config.get('valgrind').get('logs', "valgrind")) for remote in ctx.cluster.remotes.iterkeys(): -- 2.39.5