]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Copy statistics to avoid permissions problem
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 10 Jun 2019 19:20:47 +0000 (20:20 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 10 Jun 2019 19:20:47 +0000 (20:20 +0100)
test/functional/cases/108_settings.robot
test/functional/configs/settings.conf

index d414ed151f9e04c83b8ac6198474ebb012c5228b..7b2773863cb204200c8e8ca587e20355481c255b 100644 (file)
@@ -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
index 091eb5f2c27bea0af799cfd68bce364a9bad3cd1..27e28748090973697e489c91a2399af35b6af7c5 100644 (file)
@@ -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;