Whamcloud - gitweb
b=22040 Don't run connectathon lock tests on nfsv4
authorRobert Read <robert.read@oracle.com>
Thu, 20 May 2010 04:35:36 +0000 (21:35 -0700)
committerRobert Read <robert.read@oracle.com>
Wed, 26 May 2010 00:51:18 +0000 (17:51 -0700)
We won't support flock on nfsv4 in 2.x until 14080 has been fixed.

i=green

lustre/tests/parallel-scale.sh

index b0dfdce..32eadc5 100644 (file)
@@ -252,22 +252,42 @@ test_connectathon() {
     local savePWD=$PWD
     cd $cnt_DIR
 
     local savePWD=$PWD
     cd $cnt_DIR
 
-    # -f      a quick functionality test
-    # -a      run basic, general, special, and lock tests
+    #
+    # cthon options (must be in this order)
+    #
     # -N numpasses - will be passed to the runtests script.  This argument
     #         is optional.  It specifies the number of times to run
     #         through the tests.
     # -N numpasses - will be passed to the runtests script.  This argument
     #         is optional.  It specifies the number of times to run
     #         through the tests.
+    #
+    # One of these test types
+    #    -b  basic
+    #    -g  general
+    #    -s  special
+    #    -l  lock
+    #    -a  all of the above
+    #   
+    # -f      a quick functionality test
+    # 
 
 
-    local cmd="./runtests -N $cnt_NRUN -a -f $testdir"
-
-    log "$cmd"
-
-    local rc=0
-    eval $cmd
-    rc=$?
+    tests="-b -g -s"
+    # Include lock tests unless we're running on nfsv4
+    local fstype=$(df -T $testdir | awk 'NR==2  {print $2}')
+    echo "$testdir: $fstype"
+    if [[ $fstype != "nfs4" ]]; then
+       tests="$tests -l"
+    fi
+    echo "tests: $tests"
+    for test in $tests; do
+       local cmd="./runtests -N $cnt_NRUN $test -f $testdir"
+       local rc=0
+
+       log "$cmd"
+       eval $cmd
+       rc=$?
+       [ $rc = 0 ] || error "connectathon failed: $rc"
+    done
 
     cd $savePWD
 
     cd $savePWD
-    [ $rc = 0 ] || error "connectathon failed: $rc"
     rm -rf $testdir
 }
 run_test connectathon "connectathon"
     rm -rf $testdir
 }
 run_test connectathon "connectathon"