diff options
Diffstat (limited to 'tests/00_init')
-rw-r--r-- | tests/00_init | 13 |
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 |