aboutsummaryrefslogtreecommitdiffstats
path: root/tests/00_init
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/00_init
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/00_init')
-rw-r--r--tests/00_init13
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/00_init b/tests/00_init
index 2c5724e..9ea2f1c 100644
--- a/tests/00_init
+++ b/tests/00_init
@@ -9,21 +9,16 @@ exec $BIN/ck conf $BIN init $TEST_LOCATION/vc $TEST_LOCATION/sec > /dev/null &
wait $!
if [ $? -ne 0 ]; then
- echo -e $ERROR" ck crashed."
- exit 1
+ err "ck crashed."
fi
if [ ! -f $BIN/ckrc ]; then
- echo -e $ERROR" Config file not created."
- exit 1
+ err "Config file not created."
fi
if [ ! -f $BIN/ckdb ]; then
- echo -e $ERROR" DB file not created."
- exit 1
+ err "DB file not created."
fi
-rm $BIN/ckrc
-rm $BIN/ckdb
-rm -rf $TEST_LOCATION
+clear_tests 2&>1 /dev/null
echo -e $PASS