Bugfix: do not assume that tc output ends with newline.
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 6 Mar 2019 06:51:34 +0000 (15:51 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 6 Mar 2019 06:51:34 +0000 (15:51 +0900)
When a testcase generates stdout without trailing newline,
SSAT had been failing because it cannot find the tmpfile name.

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

index d2df1ca..7d9c73c 100644 (file)
@@ -85,7 +85,7 @@ function report() {
        else
                writef "${_cases},${_pass},${_fail}"
                echo "${ResultLog}" > ${_filename}
-               printf "${_filename}\n"
+               printf "\n${_filename}\n"
        fi
 
        if (( ${_criticalFail} > 0 ))