From fdc979dafba2e12d2dc3d46de3b946d6943ed4a3 Mon Sep 17 00:00:00 2001 From: gramanas Date: Mon, 30 Apr 2018 17:23:00 +0300 Subject: More test optimisations --- tests/init | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tests/init') diff --git a/tests/init b/tests/init index 44a8143..015b709 100755 --- a/tests/init +++ b/tests/init @@ -8,13 +8,18 @@ mkdir $TEST_LOCATION/sec exec $BIN/ck conf $BIN init $TEST_LOCATION/vc $TEST_LOCATION/sec & wait $! +if [ $? -ne 0 ]; then + echo -e $ERROR" ck crashed." + exit 1 +fi + if [ ! -f $BIN/ckrc ]; then - echo -e $ERROR"Config file not created." + echo -e $ERROR" Config file not created." exit 1 fi if [ ! -f $BIN/ckdb ]; then - echo -e $ERROR"DB file not created." + echo -e $ERROR" DB file not created." exit 1 fi -- cgit v1.2.3