From: Patrick Donnelly Date: Mon, 24 Sep 2018 18:29:10 +0000 (-0700) Subject: qa: cleanup workunit dir for each unit X-Git-Tag: v12.2.9~10^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=339308ac0afa6c6e5da16d6e1dd186c3063481d3;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 (cherry picked from commit 70844f3f55004024a747854013a1efb409705d81) --- diff --git a/qa/tasks/workunit.py b/qa/tasks/workunit.py index 2a708b80636a..498ceb3c295d 100644 --- a/qa/tasks/workunit.py +++ b/qa/tasks/workunit.py @@ -478,6 +478,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]