From 749e79a8cd1aa26e55ac596e68dd1708a7cf344d Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 20 Jul 2016 09:29:05 +0100 Subject: [PATCH] [Fix] Partial fix for mmap'd statistics tests --- test/functional/cases/statistics/compat-keyed.robot | 1 + test/functional/cases/statistics/compat-plain.robot | 1 + test/functional/configs/stats.conf | 2 ++ 3 files changed, 4 insertions(+) diff --git a/test/functional/cases/statistics/compat-keyed.robot b/test/functional/cases/statistics/compat-keyed.robot index 054978745..1242df12c 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 246d5a5d5..12bbaedcd 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 216d7d8f3..6c2893022 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; -- 2.39.5