1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2026-01-07 17:47:14 +00:00

test/t-01-simple_local: Don't fail if test certificates are missing

The test starts by removing the previous test certificates, which may
or may not exist.

If they don't, currently "rm" fails, causing the whole test to fail.
I am surprised I did not notice this before :(

This patch fixes the bug by using "rm -f" to remove the test certs.
This commit is contained in:
Alberto Bertogli
2017-12-08 13:56:04 +00:00
parent b3592b7bf9
commit 94c4492862

View File

@@ -6,7 +6,7 @@ set -e
init
# This should fail, as it has no certificates.
rm config/certs/testserver/*.pem
rm -f config/certs/testserver/*.pem
if chasquid -v=2 --logfile=.logs/chasquid.log --config_dir=config; then
fail "chasquid should not start without certificates"
fi