1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-19 14:57:04 +00:00

test: Fix "run without certificates" test

The test to check that chasquid fails on startup if there are no valid
TLS certificates is passing, but for the wrong reasons: it fails because
there is no logging directory, not because there are no certificates.

This patch fixes the problem by moving the logs directory creation
before the first test.
This commit is contained in:
Alberto Bertogli
2018-03-02 15:08:18 +00:00
parent f4fb2153b8
commit 83e40da3f6

View File

@@ -5,6 +5,8 @@ set -e
init
mkdir -p .logs
if ! chasquid --version > /dev/null; then
fail "chasquid --version failed"
fi
@@ -19,7 +21,6 @@ generate_certs_for testserver
add_user user@testserver secretpassword
add_user someone@testserver secretpassword
mkdir -p .logs
chasquid -v=2 --logfile=.logs/chasquid.log --config_dir=config &
wait_until_ready 1025