Whamcloud - gitweb
b=22596 Avoid test failed on single OST.
authoryangsheng <Sheng.Yang@sun.com>
Mon, 9 Aug 2010 08:54:59 +0000 (16:54 +0800)
committerJohann Lombardi <johann.lombardi@oracle.com>
Tue, 10 Aug 2010 08:33:04 +0000 (10:33 +0200)
i=adilger, grev

Use OSTCOUNT instead hard code 2 to adapt single OST case. This test
isn't necessary OSTCOUNT > 1.

lustre/tests/sanity.sh

index c472421..f360ea2 100644 (file)
@@ -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`