[tracker] functional-tests: Updated miner tests using dconf



commit 7888fd0f43c60b3af52cd89b3d022ff67c210d8f
Author: Ivan Frade <ivan frade nokia com>
Date:   Mon Mar 21 09:57:27 2011 +0200

    functional-tests: Updated miner tests using dconf

 tests/functional-tests/common/utils/minertest.py |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/tests/functional-tests/common/utils/minertest.py b/tests/functional-tests/common/utils/minertest.py
index 440dbb9..07bda9e 100644
--- a/tests/functional-tests/common/utils/minertest.py
+++ b/tests/functional-tests/common/utils/minertest.py
@@ -36,6 +36,12 @@ def uri (filename):
 
 DEFAULT_TEXT = "Some stupid content, to have a test file"
 
+CONF_OPTIONS = [
+    (cfg.DCONF_MINER_SCHEMA, "index-recursive-directories", "['$HOME/test-monitored']"),
+    (cfg.DCONF_MINER_SCHEMA, "throttle", 5)
+    ]
+
+
 class CommonTrackerMinerTest (ut.TestCase):
 
     @classmethod
@@ -87,7 +93,7 @@ class CommonTrackerMinerTest (ut.TestCase):
         else:
             confdir = os.path.join (cfg.DATADIR, "tracker-tests",
                                     "test-configurations", "miner-basic-ops")
-        self.system.tracker_miner_fs_testing_start (confdir)
+        self.system.tracker_miner_fs_testing_start (CONF_OPTIONS)
         # Returns when ready
         self.tracker = StoreHelper ()
         self.tracker.wait ()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]