X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2FsanityN.sh;h=5af953bbc98d1e735e97cf3a65facedda1065a1f;hb=f151a8e900c8fc3aa95377ae9444417975207ce1;hp=8ad81748a9caa13716976c6d9c0842a86d7cb148;hpb=1f0cc0be3202a2d129ca0ba0d01a363bd5bc308a;p=fs%2Flustre-release.git diff --git a/lustre/tests/sanityN.sh b/lustre/tests/sanityN.sh index 8ad8174..5af953b 100644 --- a/lustre/tests/sanityN.sh +++ b/lustre/tests/sanityN.sh @@ -7,7 +7,7 @@ ONLY=${ONLY:-"$*"} 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="$EXCEPT 12 16" # Tests that fail on uml [ "$UML" = "true" ] && EXCEPT="$EXCEPT 7" @@ -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) ===========" @@ -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" @@ -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 }