From 1eaf78a75498d0f739b40bf310d036c851465fad Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Mon, 24 Sep 2018 11:02:49 -0700 Subject: [PATCH] qa: use sudo to cleanup workspace Files in scratch_tmp may not be owned by ubuntu. Fixes: http://tracker.ceph.com/issues/36165 Introduced-by: de824f74dd8ac909e47335ccd53d7a085e388e41 Signed-off-by: Patrick Donnelly --- qa/tasks/workunit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/tasks/workunit.py b/qa/tasks/workunit.py index 9b02c1db77eb4..1575d232eb2f9 100644 --- a/qa/tasks/workunit.py +++ b/qa/tasks/workunit.py @@ -410,7 +410,7 @@ def _run_tests(ctx, refspec, role, tests, env, basedir, ) finally: log.info('Stopping %s on %s...', tests, role) - args=['rm', '-rf', '--', workunits_file, clonedir] + args=['sudo', 'rm', '-rf', '--', workunits_file, clonedir] if cleanup: log.info("and cleaning up scratch: {}".format(scratch_tmp)) args.append(scratch_tmp) -- 2.39.5