From f7fb5475495e1abb1a6629ecc9ea5ab0bfd2626a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 28 Jun 2011 11:09:45 -0700 Subject: [PATCH] qa: make kernel_untar_build.sh output more helpful - rm -rv - list remaining files on failure to help debug #1230 Signed-off-by: Sage Weil --- qa/workunits/kernel_untar_build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qa/workunits/kernel_untar_build.sh b/qa/workunits/kernel_untar_build.sh index 2e233309683..ef9e9831a6f 100755 --- a/qa/workunits/kernel_untar_build.sh +++ b/qa/workunits/kernel_untar_build.sh @@ -10,6 +10,10 @@ cd linux* make defconfig make -j`grep -c processor /proc/cpuinfo` cd .. -rm -r linux* +if ! rm -rv linux* ; then + echo "uh oh rm -r failed, it left behind:" + find . + exit 1 +fi cd .. -rm -r t linux* +rm -rv t linux*