Whamcloud - gitweb
- using find in sanity-lmv again.
authoryury <yury>
Thu, 12 Oct 2006 10:31:49 +0000 (10:31 +0000)
committeryury <yury>
Thu, 12 Oct 2006 10:31:49 +0000 (10:31 +0000)
lustre/tests/replay-single.sh
lustre/tests/sanity-lmv.sh

index 4b4b43d..703bf03 100755 (executable)
@@ -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
 
index 0a1b351..92fc8a2 100644 (file)
@@ -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"