From: grev Date: Mon, 20 Apr 2009 18:45:25 +0000 (+0000) Subject: b=19140 X-Git-Tag: v1_8_0_110~88 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=d1ae525963d0a2962d5261d49dbd61844e9669c7;p=fs%2Flustre-release.git b=19140 i=Alexander.Zarochentsev PTLDEBUG/SUBSYSTEM t-f set_param fix: accept the string value --- diff --git a/lustre/tests/test-framework.sh b/lustre/tests/test-framework.sh index 124621f..65ab175 100644 --- a/lustre/tests/test-framework.sh +++ b/lustre/tests/test-framework.sh @@ -169,8 +169,8 @@ load_modules() { echo Loading modules from $LUSTRE load_module ../lnet/libcfs/libcfs - [ "$PTLDEBUG" ] && lctl set_param debug=$PTLDEBUG - [ "$SUBSYSTEM" ] && lctl set_param subsystem_debug=${SUBSYSTEM# } + [ "$PTLDEBUG" ] && lctl set_param debug="$PTLDEBUG" + [ "$SUBSYSTEM" ] && lctl set_param subsystem_debug="${SUBSYSTEM# }" local MODPROBECONF= [ -f /etc/modprobe.conf ] && MODPROBECONF=/etc/modprobe.conf [ ! "$MODPROBECONF" -a -d /etc/modprobe.d ] && MODPROBECONF=/etc/modprobe.d/Lustre @@ -306,8 +306,8 @@ mount_facet() { echo "mount -t lustre $@ ${!dev} ${MOUNT%/*}/${facet}" echo "Start of ${!dev} on ${facet} failed ${RC}" else - do_facet ${facet} "lctl set_param debug=$PTLDEBUG; \ - lctl set_param subsystem_debug=${SUBSYSTEM# }; \ + do_facet ${facet} "lctl set_param debug=\\\"$PTLDEBUG\\\"; \ + lctl set_param subsystem_debug=\\\"${SUBSYSTEM# }\\\"; \ lctl set_param debug_mb=${DEBUG_SIZE}; \ sync" @@ -452,8 +452,8 @@ zconf_mount() { echo "Starting client: $client: $OPTIONS $device $mnt" do_node $client mkdir -p $mnt do_node $client mount -t lustre $OPTIONS $device $mnt || return 1 - do_node $client "lctl set_param debug=$PTLDEBUG; - lctl set_param subsystem_debug=${SUBSYSTEM# }; + do_node $client "lctl set_param debug=\\\"$PTLDEBUG\\\"; + lctl set_param subsystem_debug=\\\"${SUBSYSTEM# }\\\"; lctl set_param debug_mb=${DEBUG_SIZE}" return 0 @@ -573,8 +573,8 @@ exit $rc" echo "Started clients $clients: " do_nodes $clients "mount | grep -w $mnt" - do_nodes $clients "sysctl -w lnet.debug=$PTLDEBUG; - sysctl -w lnet.subsystem_debug=${SUBSYSTEM# }; + do_nodes $clients "sysctl -w lnet.debug=\\\"$PTLDEBUG\\\"; + sysctl -w lnet.subsystem_debug=\\\"${SUBSYSTEM# }\\\"; sysctl -w lnet.debug_mb=${DEBUG_SIZE};" return 0