From 6b4014452f1c83ec61b9edf8baa121bf64748082 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 6 Sep 2013 17:38:29 -0700 Subject: [PATCH] rgw: fix valgrind when no valgrind Signed-off-by: Sage Weil Reviewed-by: Josh Durgin --- teuthology/task/rgw.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/teuthology/task/rgw.py b/teuthology/task/rgw.py index b4f1725d7a..fded6aa3d5 100644 --- a/teuthology/task/rgw.py +++ b/teuthology/task/rgw.py @@ -177,12 +177,13 @@ def start_rgw(ctx, config): run.Raw('2>&1'), ] - run_cmd = teuthology.get_valgrind_args( - testdir, - client, - run_cmd, - client_config.get('valgrind') - ) + if client_config.get('valgrind'): + run_cmd = teuthology.get_valgrind_args( + testdir, + client, + run_cmd, + client_config.get('valgrind') + ) run_cmd.extend(run_cmd_tail) -- 2.39.5