From 70844f3f55004024a747854013a1efb409705d81 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Mon, 24 Sep 2018 11:29:10 -0700 Subject: [PATCH] qa: cleanup workunit dir for each unit This was wrongly dropped and moved to the finalizer. Introduced-by: de824f74dd8ac909e47335ccd53d7a085e388e41 Signed-off-by: Patrick Donnelly --- qa/tasks/workunit.py | 3 +++ 1 file changed, 3 insertions(+) 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]