X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2FsanityN.sh;h=752c336be815d5aeb6f71930484e9dbcd492ef75;hp=beeeba3823a357c356f8c39ffae596b6d6a47ca5;hb=39eabbad40b25b1950ae21c9ba72e8de4098565b;hpb=d81556d5d57f2880f4571b46c1639bab154e60f4 diff --git a/lustre/tests/sanityN.sh b/lustre/tests/sanityN.sh index beeeba3..752c336 100644 --- a/lustre/tests/sanityN.sh +++ b/lustre/tests/sanityN.sh @@ -4,10 +4,10 @@ set -e ONLY=${ONLY:-"$*"} # bug number for skipped test: 3192 9977 -ALWAYS_EXCEPT=${ALWAYS_EXCEPT:-"14b 28"} +ALWAYS_EXCEPT="14b 28 $SANITYN_EXCEPT" # UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT! -[ "$SLOW" = "no" ] && EXCEPT="$EXCEPT 16" +[ "$SLOW" = "no" ] && EXCEPT_SLOW="12 16" # Tests that fail on uml [ "$UML" = "true" ] && EXCEPT="$EXCEPT 7" @@ -56,7 +56,7 @@ init_test_env $@ SANITYLOG=${TESTSUITELOG:-$TMP/$(basename $0 .sh).log} FAIL_ON_ERROR=false -if [ ! -z "$USING_KRB5" ]; then +if $GSS_KRB5; then $RUNAS krb5_login.sh || exit 1 fi @@ -75,6 +75,8 @@ OSTCOUNT=`cat $LPROC/lov/$LOVNAME/numobd` rm -rf $DIR1/[df][0-9]* $DIR1/lnk +check_runas_id $RUNAS_ID $RUNAS + build_test_filter test_1a() { @@ -166,6 +168,9 @@ test_6() { run_test 6 "remove of open file on other node ==================" test_7() { + # run_one creates uniq $tdir (bug 13798) + # opendirunlink failes if it exists + rmdir $DIR1/$tdir || true opendirunlink $DIR1/$tdir $DIR2/$tdir || \ error "opendirunlink $DIR1/$tdir $DIR2/$tdir" } @@ -235,7 +240,7 @@ test_11() { run_test 11 "execution of file opened for write should return error ====" test_12() { - sh lockorder.sh + DIR=$DIR DIR2=$DIR2 sh lockorder.sh } run_test 12 "test lock ordering (link, stat, unlink) ===========" @@ -332,7 +337,7 @@ run_test 15 "test out-of-space with multiple writers ===========" test_16() { rm -f $MOUNT1/fsxfile - lfs setstripe $MOUNT1/fsxfile 0 -1 -1 # b=10919 + lfs setstripe $MOUNT1/fsxfile -c -1 # b=10919 fsx -c 50 -p 100 -N 2500 -l $((SIZE * 256)) -S 0 $MOUNT1/fsxfile $MOUNT2/fsxfile } run_test 16 "2500 iterations of dual-mount fsx =================" @@ -485,7 +490,6 @@ test_25() { [ `cat $LPROC/mdc/*-mdc-*/connect_flags | grep -c acl` -lt 2 ] && \ skip "must have acl, skipping" && return - mkdir $DIR1/$tdir || error "mkdir $DIR1/$tdir" touch $DIR1/$tdir/f1 || error "touch $DIR1/$tdir/f1" chmod 0755 $DIR1/$tdir/f1 || error "chmod 0755 $DIR1/$tdir/f1" @@ -548,7 +552,7 @@ test_28() { # bug 9977 ECHO_UUID="ECHO_osc1_UUID" tOST=`$LCTL dl | | awk '/-osc-|OSC.*MNT/ { print $4 }' | head -1` - lfs setstripe $DIR1/$tfile 1048576 0 2 + lfs setstripe $DIR1/$tfile -s 1048576 -i 0 -c 2 tOBJID=`lfs getstripe $DIR1/$tfile |grep "^[[:space:]]\+1" |awk '{print $2}'` dd if=/dev/zero of=$DIR1/$tfile bs=1024k count=2 @@ -594,13 +598,11 @@ test_29() { # bug 10999 #run_test 29 "lock put race between glimpse and enqueue =========" test_30() { #bug #11110 - rm -rf $DIR1/$tdir - mkdir -p $DIR1/$tdir cp -f /bin/bash $DIR1/$tdir/bash /bin/sh -c 'sleep 1; rm -f $DIR2/$tdir/bash; cp /bin/bash $DIR2/$tdir' & err=$($DIR1/$tdir/bash -c 'sleep 2; openfile -f O_RDONLY /proc/$$/exe >& /dev/null; echo $?') wait - [ $err -ne 116 ] && error "return code ($err) != -ESTALE" && return + [ $err -ne 116 ] && error_ignore 12900 "return code ($err) != -ESTALE" && return true }