aboutsummaryrefslogtreecommitdiffstats
path: root/tests/03_delete
diff options
context:
space:
mode:
authorAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-10-07 16:20:40 +0300
committerAnastasis Grammenos <anastasis.gramm2@gmail.com>2018-10-07 16:20:40 +0300
commit5abff8c6661fd09180b0ec93cf4516d9993a1488 (patch)
tree2825b7d8e470d2d00ff7886b2d1731cec3a09942 /tests/03_delete
parentd202883e6d642ba5a973996654cfed674420da22 (diff)
downloadck-5abff8c6661fd09180b0ec93cf4516d9993a1488.tar.gz
ck-5abff8c6661fd09180b0ec93cf4516d9993a1488.tar.bz2
ck-5abff8c6661fd09180b0ec93cf4516d9993a1488.zip
Add error function to reg tests and clean some clutter
Diffstat (limited to 'tests/03_delete')
-rw-r--r--tests/03_delete11
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