From fdf2fb945d638beb2dd50d812f33c803340084b9 Mon Sep 17 00:00:00 2001 From: grev Date: Wed, 19 Sep 2007 21:27:37 +0000 Subject: [PATCH] b=13078 i=Adilger b=13649 i=Nathan SAVE_PWD fix; 32a, 32b, 35 fixes:disk1_4 correct path, correct FSNAME. --- lustre/tests/conf-sanity.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lustre/tests/conf-sanity.sh b/lustre/tests/conf-sanity.sh index f02c4b5..5900a2b 100644 --- a/lustre/tests/conf-sanity.sh +++ b/lustre/tests/conf-sanity.sh @@ -22,6 +22,7 @@ SRCDIR=`dirname $0` PATH=$PWD/$SRCDIR:$SRCDIR:$SRCDIR/../utils:$PATH PTLDEBUG=${PTLDEBUG:--1} +SAVE_PWD=$PWD LUSTRE=${LUSTRE:-`dirname $0`/..} RLUSTRE=${RLUSTRE:-$LUSTRE} MOUNTLUSTRE=${MOUNTLUSTRE:-/sbin/mount.lustre} @@ -1080,8 +1081,9 @@ test_32a() { # devices # or maybe this test is just totally useless on a client-only system [ -z "$TUNEFS" ] && skip "No tunefs" && return - [ ! -r disk1_4.zip ] && skip "Cant find disk1_4.zip, skipping" && return - unzip -o -j -d $TMP/$tdir disk1_4.zip || { skip "Cant unzip disk1_4, skipping" && return ; } + local DISK1_4=$LUSTRE/tests/disk1_4.zip + [ ! -r $DISK1_4 ] && skip "Cant find $DISK1_4, skipping" && return + unzip -o -j -d $TMP/$tdir $DISK1_4 || { skip "Cant unzip $DISK1_4, skipping" && return ; } load_modules sysctl lnet.debug=$PTLDEBUG @@ -1136,8 +1138,9 @@ test_32b() { # devices # or maybe this test is just totally useless on a client-only system [ -z "$TUNEFS" ] && skip "No tunefs" && return - [ ! -r disk1_4.zip ] && skip "Cant find disk1_4.zip, skipping" && return - unzip -o -j -d $TMP/$tdir disk1_4.zip || { skip "Cant unzip disk1_4, skipping" && return ; } + local DISK1_4=$LUSTRE/tests/disk1_4.zip + [ ! -r $DISK1_4 ] && skip "Cant find $DISK1_4, skipping" && return + unzip -o -j -d $TMP/$tdir $DISK1_4 || { skip "Cant unzip $DISK1_4, skipping" && return ; } load_modules sysctl lnet.debug=$PTLDEBUG @@ -1166,7 +1169,7 @@ test_32b() { # a fully-functioning client echo "Check client and old fs contents" mount_client $MOUNT - set_and_check client "cat $LPROC/mdc/*/max_rpcs_in_flight" "lustre-MDT0000.mdc.max_rpcs_in_flight" || return 11 + set_and_check client "cat $LPROC/mdc/*/max_rpcs_in_flight" "${NEWNAME}-MDT0000.mdc.max_rpcs_in_flight" || return 11 [ "$(cksum $MOUNT/passwd | cut -d' ' -f 1,2)" == "2479747619 779" ] || return 12 echo "ok." @@ -1210,7 +1213,7 @@ test_35() { # bug 12459 log "Set up a fake failnode for the MDS" FAKENID="127.0.0.2" - $LCTL conf_param ${FSNAME}-MDT0000.failover.node=$FAKENID || return 4 + do_facet mds $LCTL conf_param ${FSNAME}-MDT0000.failover.node=$FAKENID || return 4 log "Wait for RECONNECT_INTERVAL seconds (10s)" sleep 10 -- 1.8.3.1