Whamcloud - gitweb
b=18442
authorgirish <girish>
Fri, 3 Jul 2009 05:39:34 +0000 (05:39 +0000)
committergirish <girish>
Fri, 3 Jul 2009 05:39:34 +0000 (05:39 +0000)
i=girish
o=rread

fix test 200d to check for new output pattern

lustre/tests/sanity.sh

index 600704d..efe272d 100644 (file)
@@ -6001,8 +6001,8 @@ run_test 200c "Set pool on a directory ================================="
 
 test_200d() {
         test_pools || return 0
-       res=$($GETSTRIPE $POOL_DIR | grep pool: | cut -f8 -d " ")
-       [ "$res" = $POOL ] || error "Pool on $POOL_DIR is not $POOL"
+       res=$($GETSTRIPE --pool $POOL_DIR | awk '/^pool:/ {print $2}')
+       [ "$res" = $POOL ] || error "Pool on $POOL_DIR is $res, not $POOL"
 }
 run_test 200d "Check pool on a directory ==============================="