From 598d4cb0074658bd34f8f901745da3181fc566d4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 10 Jun 2019 20:20:47 +0100 Subject: [PATCH] [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; -- 2.39.5