From 94c44928621bdb1ad71da59aa323f9cdfd5ad54b Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Fri, 8 Dec 2017 13:56:04 +0000 Subject: [PATCH] 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. --- test/t-01-simple_local/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/t-01-simple_local/run.sh b/test/t-01-simple_local/run.sh index a4e30f0..16f3251 100755 --- a/test/t-01-simple_local/run.sh +++ b/test/t-01-simple_local/run.sh @@ -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