]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
rgw: ignore exit status when removing base apache dir
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 2 Aug 2013 00:08:01 +0000 (17:08 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Fri, 2 Aug 2013 00:33:35 +0000 (17:33 -0700)
subdirs have already been removed, and this only needs to succeed once
per host.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
teuthology/task/rgw.py

index a87cdd6df2628afc70949a31537c5548ac0af60d..4088c43d846bb3b79f7e4465b3b4e51492daafbe 100644 (file)
@@ -53,13 +53,10 @@ def create_dirs(ctx, config):
         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(';'), 
                     ],
+                check_status=False, # only need to remove once per host
                 )