From: Vsevolod Stakhov Date: Mon, 10 Jun 2019 19:20:47 +0000 (+0100) Subject: [Test] Copy statistics to avoid permissions problem X-Git-Tag: 2.0~800 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=598d4cb0074658bd34f8f901745da3181fc566d4;p=rspamd.git [Test] Copy statistics to avoid permissions problem --- 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;