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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user