Skip to content

Commit

Permalink
qa: cleanup workunit dir for each unit
Browse files Browse the repository at this point in the history
This was wrongly dropped and moved to the finalizer.

Introduced-by: de824f7
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
  • Loading branch information
batrick committed Sep 24, 2018
1 parent 1eaf78a commit 70844f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qa/tasks/workunit.py
Expand Up @@ -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]
Expand Down

0 comments on commit 70844f3

Please sign in to comment.