From: Andrew Lewis Date: Wed, 20 Jul 2016 08:29:05 +0000 (+0100) Subject: [Fix] Partial fix for mmap'd statistics tests X-Git-Tag: 1.3.0~41^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F733%2Fhead;p=thirdparty%2Frspamd.git [Fix] Partial fix for mmap'd statistics tests --- diff --git a/test/functional/cases/statistics/compat-keyed.robot b/test/functional/cases/statistics/compat-keyed.robot index 0549787450..1242df12c1 100644 --- a/test/functional/cases/statistics/compat-keyed.robot +++ b/test/functional/cases/statistics/compat-keyed.robot @@ -7,6 +7,7 @@ Resource lib.robot ${STATS_BACKEND} mmap ${STATS_HASH} hash = "compat"; ${STATS_KEY} key = "${KEY_PVT1}"; +${STATS_PATH_CACHE} name = "sqlite3"; path = "\${TMPDIR}/learn_cache.db"; *** Test Cases *** Learn diff --git a/test/functional/cases/statistics/compat-plain.robot b/test/functional/cases/statistics/compat-plain.robot index 246d5a5d58..12bbaedcdd 100644 --- a/test/functional/cases/statistics/compat-plain.robot +++ b/test/functional/cases/statistics/compat-plain.robot @@ -6,6 +6,7 @@ Resource lib.robot *** Variables *** ${STATS_BACKEND} mmap ${STATS_HASH} hash = "compat"; +${STATS_PATH_CACHE} name = "sqlite3"; path = "\${TMPDIR}/learn_cache.db"; *** Test Cases *** Learn diff --git a/test/functional/configs/stats.conf b/test/functional/configs/stats.conf index 216d7d8f33..6c2893022c 100644 --- a/test/functional/configs/stats.conf +++ b/test/functional/configs/stats.conf @@ -45,12 +45,14 @@ classifier { } backend = ${STATS_BACKEND} statfile { + spam = true; symbol = BAYES_SPAM; ${STATS_PATH_SPAM} size = 1M; ${REDIS_SERVER} } statfile { + spam = false; symbol = BAYES_HAM; ${STATS_PATH_HAM} size = 1M;