From: Patrick Donnelly Date: Mon, 24 Sep 2018 18:29:10 +0000 (-0700) Subject: qa: cleanup workunit dir for each unit X-Git-Tag: v14.0.1~187^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=70844f3f55004024a747854013a1efb409705d81;p=ceph.git qa: cleanup workunit dir for each unit This was wrongly dropped and moved to the finalizer. Introduced-by: de824f74dd8ac909e47335ccd53d7a085e388e41 Signed-off-by: Patrick Donnelly --- diff --git a/qa/tasks/workunit.py b/qa/tasks/workunit.py index 1575d232eb2f9..315ece6b0045d 100644 --- a/qa/tasks/workunit.py +++ b/qa/tasks/workunit.py @@ -408,6 +408,9 @@ def _run_tests(ctx, refspec, role, tests, env, basedir, args=args, label="workunit test {workunit}".format(workunit=workunit) ) + if cleanup: + args=['sudo', 'rm', '-rf', '--', scratch_tmp] + remote.run(logger=log.getChild(role), args=args) finally: log.info('Stopping %s on %s...', tests, role) args=['sudo', 'rm', '-rf', '--', workunits_file, clonedir]