test.sh: tst_resm and tst_brkm enhance
If the output information is too long, we need a newline.
But tst_resm and tst_brkm only prints $1 and $2.
This patch will make them print all parameters.
For example:
In <LTP>/testcases/network/multicast/mc_cmds
--------------------------------------------------------------------------------
...
113 ping -c2 -I $INTERFACE 224.0.0.1 > $PING_OUT
114 if [ $? -ne 0 ]; then
115 tst_resm TINFO "Trying to ping with $INTERFACE_DEVICE"\
116 "with the -I option instead of IP address"
...
122 fi
...
--------------------------------------------------------------------------------
If "ping -c2 -I $INTERFACE 224.0.0.1 > $PING_OUT" failed,
it just output "Trying to ping with $INTERFACE_DEVICE",
"with the -I option instead of IP address" would be discard.
After this patch, if "ping ..." failed the second string also output.
Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
1 file changed