commit 598d4cb: [Test] Copy statistics to avoid permissions problem
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Jun 10 19:28:04 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-06-10 20:20:47 +0100
URL: https://github.com/rspamd/rspamd/commit/598d4cb0074658bd34f8f901745da3181fc566d4 (HEAD -> master)
[Test] Copy statistics to avoid permissions problem
---
test/functional/cases/108_settings.robot | 2 ++
test/functional/configs/settings.conf | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/test/functional/cases/108_settings.robot b/test/functional/cases/108_settings.robot
index d414ed151..7b2773863 100644
--- a/test/functional/cases/108_settings.robot
+++ b/test/functional/cases/108_settings.robot
@@ -97,6 +97,8 @@ SETTINGS ID - PRE
*** Keywords ***
Settings Setup
+ Copy File ${TESTDIR}/data/bayes.spam.sqlite3 /tmp/bayes.spam.sqlite3
+ Copy File ${TESTDIR}/data/bayes.ham.sqlite3 /tmp/bayes.ham.sqlite3
${PLUGIN_CONFIG} = Get File ${TESTDIR}/configs/settings.conf
Set Suite Variable ${PLUGIN_CONFIG}
Generic Setup PLUGIN_CONFIG
diff --git a/test/functional/configs/settings.conf b/test/functional/configs/settings.conf
index 091eb5f2c..27e287480 100644
--- a/test/functional/configs/settings.conf
+++ b/test/functional/configs/settings.conf
@@ -19,12 +19,12 @@ classifier {
statfile {
spam = true;
symbol = BAYES_SPAM;
- path = "${TESTDIR}/data/bayes.spam.sqlite3";
+ path = "/tmp/bayes.spam.sqlite3";
}
statfile {
spam = false;
symbol = BAYES_HAM;
- path = "${TESTDIR}/data/bayes.ham.sqlite3";
+ path = "/tmp/bayes.ham.sqlite3";
}
min_learns = 1;
min_token_hits = 1;
More information about the Commits
mailing list