From b0c7105a7f08389e012ce4882b38030df54cf474 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Thu, 10 Aug 2017 01:06:56 +0100 Subject: added more tests -- commits without scorsh-commands --- test/scorsh_functions | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'test/scorsh_functions') diff --git a/test/scorsh_functions b/test/scorsh_functions index 7f4fb1b..e007f82 100644 --- a/test/scorsh_functions +++ b/test/scorsh_functions @@ -12,6 +12,17 @@ failed(){ FAILED_TESTS=$((${FAILED_TESTS} + 1)) } +## func +fatal(){ + + TEST_NAME="$1" + TEST_SECTION="$2" + + echo "[\033[7;31mFATAL\033[0m] -- ${TEST_NAME}:${TEST_SECTION} " + FAILED_TESTS=$((${FAILED_TESTS} + 1)) +} + + ## func passed(){ @@ -52,7 +63,7 @@ check_fatal(){ if $(echo ${EXPR}) ; then passed ${TEST_NAME} ${TEST_SECTION} else - failed ${TEST_NAME} ${TEST_SECTION} + fatal ${TEST_NAME} ${TEST_SECTION} echo "Fatal test failed -- Aborting" exit 1 fi -- cgit v1.2.3