i=Andrew.Perepechko
libecho fix: use NETTYPE instead of tcp only
DSH=${DSH:-"ssh"}
+NETTYPE=${NETTYPE:-tcp}
dsh () {
local node="$1"
local server_nid=$1
local ocsname=$2
local oscuuid=$3
- $lctl add_uuid echo_UUID $server_nid@tcp >/dev/null 2>&1
+ $lctl add_uuid echo_UUID $server_nid@$NETTYPE >/dev/null 2>&1
$lctl <<EOF
attach osc $ocsname $oscuuid
cfg_device $ocsname
local ost_nid=$1
local obdfilter_name=$2
local host_name=host_$3
- $lctl add_uuid ${host_name}_UUID $ost_nid@tcp >/dev/null 2>&1
+ $lctl add_uuid ${host_name}_UUID $ost_nid@$NETTYPE >/dev/null 2>&1
$lctl <<EOF
attach osc ${obdfilter_name}_osc ${obdfilter_name}_osc_UUID
cfg_device ${obdfilter_name}_osc
rm -f ${TMP}/obdfilter_survey*
local targets=$(obdflter_survey_targets $case)
- local cmd="thrlo=$thrlo nobjhi=$nobjhi thrhi=$thrhi size=$size case=$case rslt_loc=${TMP} targets=\"$targets\" sh $OBDSURVEY"
+ local cmd="NETTYPE=$NETTYPE thrlo=$thrlo nobjhi=$nobjhi thrhi=$thrhi size=$size case=$case rslt_loc=${TMP} targets=\"$targets\" sh $OBDSURVEY"
echo + $cmd
eval $cmd
equals_msg `basename $0`: test complete, cleaning up
cleanup_echo_devs
check_and_cleanup_lustre
-[ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG || true
+[ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG && grep -q FAIL $TESTSUITELOG && exit 1 || true