Removing the scratchdir in the remote run command
at the end of the script invocation will do the remove
once the first script finishes. With possibly a shared
scratch dir across workunit clients, we want to wait to
remove the scratch dir once all the workunit scripts have
completed.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
srcdir=srcdir,
workunit=workunit,
),
- run.Raw('&&'),
- 'rm', '-rf', '--', scratch_tmp,
])
remote.run(
logger=log.getChild(role),
args=args,
)
+ remote.run(
+ logger=log.getChild(role),
+ args=['rm', '-rf', '--', scratch_tmp],
+ )
finally:
log.info('Stopping %s on %s...', spec, role)
remote.run(