From: Elena Gryaznova Date: Mon, 22 Feb 2010 22:21:27 +0000 (-0800) Subject: b=21932 disable some tests on NFSCLIENT X-Git-Tag: 1.10.0.38~25 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=0272fbaa5891bd498aae3a6b79ed79c351fc7256;hp=08a58efb510c9e9bdd62ba20e3e6d9470b5144ad;ds=sidebyside b=21932 disable some tests on NFSCLIENT Disable simul, write_disjoint, write_append_truncate for NFSCLIENT mode. Setstripe on lustre client (nfsserver) instead of nfs client for ior test. i=Oleg.Drokin --- diff --git a/lustre/tests/parallel-scale.sh b/lustre/tests/parallel-scale.sh index e6c41ff..218c147 100644 --- a/lustre/tests/parallel-scale.sh +++ b/lustre/tests/parallel-scale.sh @@ -197,6 +197,11 @@ test_metabench() { run_test metabench "metabench" test_simul() { + if [ "$NFSCLIENT" ]; then + skip "skipped for NFSCLIENT mode" + return + fi + [ x$SIMUL = x ] && { skip_env "simul not found" && return; } @@ -298,8 +303,13 @@ test_ior() { mkdir -p $testdir # mpi_run uses mpiuser chmod 0777 $testdir - $LFS setstripe $testdir -c -1 - + if [ "$NFSCLIENT" ]; then + setstripe_nfsserver $testdir -c -1 || + { error "setstripe on nfsserver failed" && return 1; } + else + $LFS setstripe $testdir -c -1 || + { error "setstripe failed" && return 2; } + fi # # -b N blockSize -- contiguous bytes to write per task (e.g.: 8, 4k, 2m, 1g)" # -o S testFileName @@ -365,6 +375,11 @@ test_cascading_rw() { run_test cascading_rw "cascading_rw" test_write_append_truncate() { + if [ "$NFSCLIENT" ]; then + skip "skipped for NFSCLIENT mode" + return + fi + # location is lustre/tests dir if ! which write_append_truncate > /dev/null 2>&1 ; then skip_env "write_append_truncate not found" @@ -406,6 +421,11 @@ test_write_append_truncate() { run_test write_append_truncate "write_append_truncate" test_write_disjoint() { + if [ "$NFSCLIENT" ]; then + skip "skipped for NFSCLIENT mode" + return + fi + [ x$WRITE_DISJOINT = x ] && { skip_env "write_disjoint not found" && return; } diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 371e5e2..5726c3d 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -2950,6 +2950,17 @@ get_stripe () { rm -f $file } +setstripe_nfsserver () { + local dir=$1 + + local nfsserver=$(awk '"'$dir'" ~ $2 && $3 ~ "nfs" && $2 != "/" \ + { print $1 }' /proc/mounts | cut -f 1 -d : | head -1) + + [ -z $nfsserver ] && echo "$dir is not nfs mounted" && return 1 + + do_node --verbose $nfsserver lfs setstripe "$@" +} + check_runas_id_ret() { local myRC=0 local myRUNAS_UID=$1