return 1
}
-
+
# $1: metadata file; $2: xml file; $3: check Result-Code indicator; $4: client/server (ADML node role)
update_testcase () {
# metadata aspect:
local ans_xml=${hbh_matchs[1]}
local rc=2001
if [ -n "$ans_xml" ]
- then
+ then
_rc=$(getResultCode $ans_xml)
[ -n "$_rc" ] && rc=$_rc
fi
# Ignore keep alives:
grep -q "^code=280$" $mtd
[ $? -eq 0 ] && continue
-
+
grep -q "^isrequest=1$" $mtd
if [ $? -eq 0 ]
then
fi
# Other requests:
echo $frame >> requests_4_sending
-
+
# client or server:
adml_type=$(grep -w "$originHost" $ohs_file | awk '{ print $NF }')
update_testcase $mtd $xml check_result_code $adml_type