From 72c66ab821e25576c98dd8d909ea2ac86cddad94 Mon Sep 17 00:00:00 2001 From: adilger Date: Sun, 18 Mar 2007 07:31:28 +0000 Subject: [PATCH] Branch HEAD Fixes in b1_4 missing from HEAD: - enable test 14c (b=4035, b=7040) - don't print an error because /proc/sys/lustre/fail_loc is missing if the lustre is stopped when error() is called - cleanup echo device after test_28 is done --- lustre/tests/sanityN.sh | 65 +++++++++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 29 deletions(-) diff --git a/lustre/tests/sanityN.sh b/lustre/tests/sanityN.sh index 2b18352..56e5271 100644 --- a/lustre/tests/sanityN.sh +++ b/lustre/tests/sanityN.sh @@ -3,8 +3,8 @@ set -e ONLY=${ONLY:-"$*"} -# bug number for skipped test: 3192 4035 9977 -ALWAYS_EXCEPT=${ALWAYS_EXCEPT:-"14b 14c 28"} +# bug number for skipped test: 3192 9977 +ALWAYS_EXCEPT=${ALWAYS_EXCEPT:-"14b 28"} # UPDATE THE COMMENT ABOVE WITH BUG NUMBERS WHEN CHANGING ALWAYS_EXCEPT! [ "$SLOW" = "no" ] && EXCEPT="$EXCEPT 16" @@ -164,7 +164,7 @@ run_test() { [ "$SANITYLOG" ] && rm -f $SANITYLOG || true error () { - sysctl -w lustre.fail_loc=0 + sysctl -w lustre.fail_loc=0 2> /dev/null || true log "$0: FAIL: $TESTNAME $@" if [ "$SANITYLOG" ]; then echo "$0: FAIL: $TESTNAME $@" >> $SANITYLOG @@ -466,7 +466,7 @@ test_17() { # bug 3513, 3667 cp /etc/termcap $DIR1/f17 cancel_lru_locks osc > /dev/null #define OBD_FAIL_ONCE|OBD_FAIL_LDLM_CREATE_RESOURCE 0x30a - echo 0x8000030a > /proc/sys/lustre/fail_loc + sysctl -w lustre.fail_loc=0x8000030a ls -ls $DIR1/f17 | awk '{ print $1,$6 }' > $DIR1/f17-1 & \ ls -ls $DIR2/f17 | awk '{ print $1,$6 }' > $DIR2/f17-2 wait @@ -666,32 +666,39 @@ test_27() { run_test 27 "align non-overlapping extent locks from request ===" 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 - tOBJID=`lfs getstripe $DIR1/$tfile | grep "^[[:space:]]\+1" | awk '{print $2}'` - dd if=/dev/zero of=$DIR1/$tfile bs=1024k count=2 - - $LCTL <