]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: cleanup workunit dir for each unit 24252/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 24 Sep 2018 18:29:10 +0000 (11:29 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 24 Sep 2018 18:29:10 +0000 (11:29 -0700)
This was wrongly dropped and moved to the finalizer.

Introduced-by: de824f74dd8ac909e47335ccd53d7a085e388e41
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/workunit.py

index 1575d232eb2f930f8c1ec12993976207dadcc4a4..315ece6b0045d99e7c55a865f7a4014ed0977c67 100644 (file)
@@ -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]