If the output information is too long, we need a newline.
But tst_resm and tst_brkm only print $1 and $2.
This patch will make them print all parameters.

Signed-off-by: Zeng Linggang <zenglg...@cn.fujitsu.com>
---
 testcases/lib/test.sh | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/testcases/lib/test.sh b/testcases/lib/test.sh
index eecbfba..9606b21 100644
--- a/testcases/lib/test.sh
+++ b/testcases/lib/test.sh
@@ -45,9 +45,11 @@ tst_resm()
        local mask=$?
        LTP_RET_VAL=$((LTP_RET_VAL|mask))
 
-       echo "$TCID $TST_COUNT $1 : $2"
+       local ret=$1
+       shift
+       echo "$TCID $TST_COUNT $ret : $@"
 
-       case "$1" in
+       case "$ret" in
        TPASS|TFAIL)
        TST_COUNT=$((TST_COUNT+1));;
        esac
@@ -62,7 +64,9 @@ tst_brkm()
        *) tst_brkm TBROK "Invalid tst_brkm type '$1'";;
        esac
 
-       tst_resm "$1" "$2"
+       local ret=$1
+       shift
+       tst_resm "$ret" "$@"
        tst_exit
 }
 
-- 
1.9.3




------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to