With -p (progress), print progress of each case.
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 29 Jan 2019 10:58:54 +0000 (19:58 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 29 Jan 2019 10:58:54 +0000 (19:58 +0900)
Print out not just the progress of test sets, but of each test case.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
ssat-api.sh

index a9eba35..f64e87a 100644 (file)
@@ -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