diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-10 20:20:47 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-06-10 20:20:47 +0100 |
commit | 598d4cb0074658bd34f8f901745da3181fc566d4 (patch) | |
tree | 4bb26c57ba7381ead74b4b15732494a8da4047aa /test | |
parent | 615df8d1fa4ad75dc14fc29e36ac18b118df50b1 (diff) | |
download | rspamd-598d4cb0074658bd34f8f901745da3181fc566d4.tar.gz rspamd-598d4cb0074658bd34f8f901745da3181fc566d4.zip |
[Test] Copy statistics to avoid permissions problem
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/cases/108_settings.robot | 2 | ||||
-rw-r--r-- | 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; |