From: Vsevolod Stakhov Date: Thu, 2 Jul 2015 18:08:01 +0000 (+0100) Subject: Store rspamd log permanently for functional tests. X-Git-Tag: 1.0.0~450 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98a46bf694fba3a9130d5d6ce4a2399083423a15;p=thirdparty%2Frspamd.git Store rspamd log permanently for functional tests. --- diff --git a/test/functional/configs/trivial.conf b/test/functional/configs/trivial.conf index 0750d58341..896f2b4ff8 100644 --- a/test/functional/configs/trivial.conf +++ b/test/functional/configs/trivial.conf @@ -7,8 +7,9 @@ options = { pidfile = "/tmp/rspamd-bats.pid" } logging = { - type = "console", + type = "file", level = "debug" + filename = "/tmp/rspamd-bats.log" } metric = { name = "default", @@ -22,4 +23,8 @@ worker { type = normal bind_socket = localhost:56789 count = 1 + keypair { + pubkey = "y3ms1knmetxf8gdeixkf74b6tbpxqugmxzqksnjodiqei7tksyty"; + privkey = "oswsyqndpj3swqa4yqm4yzoyih83otqkeoxpo9km95o46ixh6quy"; + } } diff --git a/test/functional/test_helper.bash b/test/functional/test_helper.bash index bccacf057b..b8ff9a5570 100644 --- a/test/functional/test_helper.bash +++ b/test/functional/test_helper.bash @@ -3,6 +3,7 @@ function run_rspamd() { RSPAMD_GROUP=${RSPAMD_GROUP:-"nogroup"} RSPAMD=${RSPAMD:-"$BATS_TEST_DIRNAME/../../src/rspamd"} + if [ -f /tmp/rspamd-bats.log ] ; then rm -f /tmp/rspamd-bats.log ; fi ${RSPAMD} -c ${RSPAMD_CONFIG} -u ${RSPAMD_USER} -g ${RSPAMD_GROUP} }