summaryrefslogtreecommitdiff
path: root/test/scorsh_functions
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2017-08-10 01:06:56 +0100
committerKatolaZ <katolaz@freaknet.org>2017-08-10 01:06:56 +0100
commitb0c7105a7f08389e012ce4882b38030df54cf474 (patch)
tree820c751e886efd7b4843643c391f4fed1a0b46b3 /test/scorsh_functions
parent33b7c33ab447a0463e414c6cf8f9a2cd2d047a20 (diff)
added more tests -- commits without scorsh-commands
Diffstat (limited to 'test/scorsh_functions')
-rw-r--r--test/scorsh_functions13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/scorsh_functions b/test/scorsh_functions
index 7f4fb1b..e007f82 100644
--- a/test/scorsh_functions
+++ b/test/scorsh_functions
@@ -13,6 +13,17 @@ failed(){
}
## 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(){
TEST_NAME="$1"
@@ -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