From 5abff8c6661fd09180b0ec93cf4516d9993a1488 Mon Sep 17 00:00:00 2001 From: Anastasis Grammenos Date: Sun, 7 Oct 2018 16:20:40 +0300 Subject: Add error function to reg tests and clean some clutter --- tests/03_delete | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'tests/03_delete') diff --git a/tests/03_delete b/tests/03_delete index 6cc0dbc..ee1cdd6 100644 --- a/tests/03_delete +++ b/tests/03_delete @@ -20,7 +20,7 @@ wait $! for i in $($BIN/ck conf $BIN list paths); do if [[ "$i" == "$path1" ]]; then - echo -e $ERROR" Couldn't delete path." + err "Couldn't delete path." exit 1 fi done @@ -31,8 +31,7 @@ wait $! for i in $($BIN/ck conf $BIN list programs); do if [[ "$i" == "prog1" ]]; then - echo -e $ERROR" Removing all configs should delete the correspondig program." - exit 1 + err "Removing all configs should delete the correspondig program." fi done @@ -42,15 +41,13 @@ wait $! for i in $($BIN/ck conf $BIN list paths); do if [[ "$i" == "$path3" ]] || [[ "$i" == "$path4" ]]; then - echo -e $ERROR" Removing the program should delete all it's configs." - exit 1 + err "Removing the program should delete all it's configs." fi done for i in $($BIN/ck conf $BIN list programs); do if [[ "$i" == "prog1" ]]; then - echo -e $ERROR" Couldn't remove program." - exit 1 + err "Couldn't remove program." fi done -- cgit v1.2.3