From: yangsheng Date: Mon, 9 Aug 2010 08:54:59 +0000 (+0800) Subject: b=22596 Avoid test failed on single OST. X-Git-Tag: v1_8_4_50~8 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=6b90f8e87581aca4ba08f583e60ae383ee71730e;p=fs%2Flustre-release.git b=22596 Avoid test failed on single OST. i=adilger, grev Use OSTCOUNT instead hard code 2 to adapt single OST case. This test isn't necessary OSTCOUNT > 1. --- diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index c472421..f360ea2 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -4422,7 +4422,7 @@ test_102k() { local default_size=`$GETSTRIPE -s $test_kdir` local default_count=`$GETSTRIPE -c $test_kdir` local default_offset=`$GETSTRIPE -o $test_kdir` - $SETSTRIPE -s 65536 -i 1 -c 2 $test_kdir || error 'dir setstripe failed' + $SETSTRIPE -s 65536 -i 1 -c $OSTCOUNT $test_kdir || error 'dir setstripe failed' setfattr -n trusted.lov $test_kdir local stripe_size=`$GETSTRIPE -s $test_kdir` local stripe_count=`$GETSTRIPE -c $test_kdir`