From: Patrick Donnelly Date: Mon, 24 Sep 2018 18:02:49 +0000 (-0700) Subject: qa: use sudo to cleanup workspace X-Git-Tag: v14.0.1~187^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1eaf78a75498d0f739b40bf310d036c851465fad;p=ceph.git 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 --- 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)