From: MyungJoo Ham Date: Tue, 29 Jan 2019 10:58:54 +0000 (+0900) Subject: With -p (progress), print progress of each case. X-Git-Tag: accepted/tizen/unified/20191211.022200~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0cf72c991d6f2fa721d920606d629c9aa14b3c85;p=platform%2Fupstream%2FSSAT.git With -p (progress), print progress of each case. Print out not just the progress of test sets, but of each test case. Signed-off-by: MyungJoo Ham --- diff --git a/ssat-api.sh b/ssat-api.sh index a9eba35..f64e87a 100644 --- a/ssat-api.sh +++ b/ssat-api.sh @@ -122,6 +122,11 @@ function testInit() { ## @param $4 set 1 if this is not critical (don't care if it's pass or fail)_ ## @param $5 set 1 if $1==0 is success and $1!=0 is fail. function testResult() { + if [[ "${PROGRESS}" -eq "1" ]] + then + echo "Case ${2}(${3}) report ${1}" > /dev/stderr + fi + _cases=$((_cases+1)) _good=0 if [[ "${5}" -eq "1" ]]; then