From c7e070b03a16f8c40693e3e8bf86ad842716c4b5 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 29 Jan 2016 08:10:38 -0500 Subject: [PATCH] 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 --- teuthology/task/internal.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/teuthology/task/internal.py b/teuthology/task/internal.py index 1d80ba5da8..742f6fd078 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, ), ) -- 2.39.5