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/00_init | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'tests/00_init') 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 -- cgit v1.2.3