Improve the output format of the testrunner (#2438)

JerryScript-DCO-1.0-Signed-off-by: Peter Marki marpeter@inf.u-szeged.hu
This commit is contained in:
Peter Marki
2018-08-08 16:33:02 +02:00
committed by yichoi
parent 1ac2903d3c
commit 47087dec56
4 changed files with 58 additions and 21 deletions
+6 -2
View File
@@ -19,6 +19,10 @@ DEBUGGER_CLIENT=$2
TEST_CASE=$3
CLIENT_ARGS=""
TERM_NORMAL='\033[0m'
TERM_RED='\033[1;31m'
TERM_GREEN='\033[1;32m'
if [[ $TEST_CASE == *"client_source"* ]]; then
START_DEBUG_SERVER="${JERRY} --start-debug-server --debugger-wait-source &"
if [[ $TEST_CASE == *"client_source_multiple"* ]]; then
@@ -50,9 +54,9 @@ rm -f ${RESULT_TEMP}
if [ ${STATUS_CODE} -ne 0 ]
then
echo "${TEST_CASE} failed"
echo -e "${TERM_RED}FAIL: ${TEST_CASE}${TERM_NORMAL}\n"
else
echo "${TEST_CASE} passed"
echo -e "${TERM_GREEN}PASS: ${TEST_CASE}${TERM_NORMAL}\n"
fi
exit ${STATUS_CODE}