From 908aabdf21428541c08d8a56f15923238b2e241a Mon Sep 17 00:00:00 2001 From: yury Date: Thu, 12 Oct 2006 10:31:49 +0000 Subject: [PATCH] - using find in sanity-lmv again. --- lustre/tests/replay-single.sh | 4 ---- lustre/tests/sanity-lmv.sh | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index 4b4b43d..703bf03 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -78,10 +78,6 @@ seq_get_width() } test_0c() { - if test $MDSCOUNT != 0; then - echo "Skipped for LMV config" - return 0; - fi local label=`mdsdevlabel 1` [ -z "$label" ] && echo "No label for mds1" && return 1 diff --git a/lustre/tests/sanity-lmv.sh b/lustre/tests/sanity-lmv.sh index 0a1b351..92fc8a2 100644 --- a/lustre/tests/sanity-lmv.sh +++ b/lustre/tests/sanity-lmv.sh @@ -239,7 +239,7 @@ run_test 1a " remove splitted dir =============================" test_1b() { mkdir $DIR/1b0 || error createmany -o $DIR/1b0/f 4000 || error - for file in $DIR/1b0/*; do rm -f $file; done + find $DIR/1b0 -type f | xargs rm -f NUM=`ls $DIR/1b0 | wc -l` if [ $NUM -ne 0 ] ; then echo "dir must be empty" @@ -269,7 +269,7 @@ run_test 1b " remove splitted dir =============================" test_1c() { mkdir $DIR/1b1 || error createmany -o $DIR/1b1/f 4000 || error - for file in $DIR/1b1/*; do rm -f $file; done + find $DIR/1b1 -type f | xargs rm -f NUM=`ls $DIR/1b1 | wc -l` if [ $NUM -ne 0 ] ; then echo "dir must be empty" -- 1.8.3.1