]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
task/internal: list leftover testdir files 781/head
authorSage Weil <sage@redhat.com>
Fri, 29 Jan 2016 13:10:38 +0000 (08:10 -0500)
committerSage Weil <sage@redhat.com>
Fri, 29 Jan 2016 13:10:38 +0000 (08:10 -0500)
The rmdir should succeed, but if it doesn't, it's hard to tell what was
there that prevented cleanup.  The find will usually print nothing but
when we do have a sloppy task that didn't clean up we'll be able to tell
what it was...

Signed-off-by: Sage Weil <sage@redhat.com>
teuthology/task/internal.py

index 1d80ba5da8ab08de87246ab853c5d4dbbb08009f..742f6fd078f25af94dda061ebaba80f476d0f8bb 100644 (file)
@@ -48,7 +48,9 @@ def base(ctx, config):
         # just cram an rm -rf here
         run.wait(
             ctx.cluster.run(
-                args=['rmdir', '--', testdir],
+                args=['find', testdir, '-ls',
+                      run.Raw(';'),
+                      'rmdir', '--', testdir],
                 wait=False,
             ),
         )