]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: cleanup workunit dir for each unit
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 24 Sep 2018 18:29:10 +0000 (11:29 -0700)
committerNathan Cutler <ncutler@suse.com>
Fri, 5 Oct 2018 02:16:32 +0000 (04:16 +0200)
This was wrongly dropped and moved to the finalizer.

Introduced-by: de824f74dd8ac909e47335ccd53d7a085e388e41
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 70844f3f55004024a747854013a1efb409705d81)

qa/tasks/workunit.py

index 2a708b80636abc94e7bb4287b09f23d466f1e47b..498ceb3c295d97380e0721df3b49e1532135e7ae 100644 (file)
@@ -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]