From: Robert Read Date: Thu, 20 May 2010 04:35:36 +0000 (-0700) Subject: b=22040 Don't run connectathon lock tests on nfsv4 X-Git-Tag: v1_10_0_43~22 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=23b6df3361789705039235e4e1cb3a25f2b2397f b=22040 Don't run connectathon lock tests on nfsv4 We won't support flock on nfsv4 in 2.x until 14080 has been fixed. i=green --- diff --git a/lustre/tests/parallel-scale.sh b/lustre/tests/parallel-scale.sh index b0dfdce..32eadc5 100644 --- a/lustre/tests/parallel-scale.sh +++ b/lustre/tests/parallel-scale.sh @@ -252,22 +252,42 @@ test_connectathon() { 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. + # + # 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 - [ $rc = 0 ] || error "connectathon failed: $rc" rm -rf $testdir } run_test connectathon "connectathon"