The post-yield code in create_dirs needed to
be tweaked to correctly delete the {tdir}/apache
directory (if it exists) on each client.
Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
client=client),
],
)
- ctx.cluster.only(client).run(
- 'rmdir',
- '{tdir}/apache.{client}'.format(tdir=testdir,
- client=client),
- )
+
+ for client in config.iterkeys():
+ ctx.cluster.only(client).run(
+ args=[
+ 'test', '-d',
+ '{tdir}/apache'.format(tdir=testdir),
+ run.Raw('&&'),
+ 'rmdir',
+ '{tdir}/apache'.format(tdir=testdir),
+ run.Raw(';'),
+ ],
+ )
@contextlib.contextmanager