From 0e53f5f38b0cb06a6f4989e622a279c8ba9104eb Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Mon, 23 Feb 2015 21:04:16 -0800 Subject: [PATCH] workunit: include /usr/sbin in the PATH for all commands Fixes: #10600 Backport: hammer, giant, firefly, dumpling Signed-off-by: Greg Farnum --- tasks/workunit.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/workunit.py b/tasks/workunit.py index b63adfac7472e..5660f4c0c5e02 100644 --- a/tasks/workunit.py +++ b/tasks/workunit.py @@ -336,6 +336,7 @@ def _run_tests(ctx, refspec, role, tests, env, subdir=None, timeout=None): run.Raw('CEPH_REF={ref}'.format(ref=refspec)), run.Raw('TESTDIR="{tdir}"'.format(tdir=testdir)), run.Raw('CEPH_ID="{id}"'.format(id=id_)), + run.Raw('PATH=$PATH:/usr/sbin') ] if env is not None: for var, val in env.iteritems(): -- 2.39.5