From: Sage Weil Date: Fri, 29 Jan 2016 13:10:38 +0000 (-0500) Subject: task/internal: list leftover testdir files X-Git-Tag: 1.1.0~681^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c7e070b03a16f8c40693e3e8bf86ad842716c4b5;p=teuthology.git task/internal: list leftover testdir files 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 --- diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index 1d80ba5da..742f6fd07 100644 --- a/teuthology/task/internal.py +++ b/teuthology/task/internal.py @@ -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, ), )