diff options
Diffstat (limited to 'tests/03_delete')
-rw-r--r-- | tests/03_delete | 11 |
1 files changed, 4 insertions, 7 deletions
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 |