[tracker/gsettings-remaining-bits] functional-tests: Application tests use dconf for the configuration



commit ee81971e47a4fa44c33d9aa80cd1092eee37383f
Author: Ivan Frade <ivan frade nokia com>
Date:   Tue Mar 22 13:59:35 2011 +0200

    functional-tests: Application tests use dconf for the configuration

 .../common/utils/applicationstest.py               |   21 +++++--------------
 1 files changed, 6 insertions(+), 15 deletions(-)
---
diff --git a/tests/functional-tests/common/utils/applicationstest.py b/tests/functional-tests/common/utils/applicationstest.py
index 7448918..cad8217 100644
--- a/tests/functional-tests/common/utils/applicationstest.py
+++ b/tests/functional-tests/common/utils/applicationstest.py
@@ -28,6 +28,11 @@ import time
 
 APPLICATIONS_TMP_DIR = os.path.join (cfg.TEST_TMP_DIR, "test-applications-monitored")
 
+CONF_OPTIONS = [
+    (cfg.DCONF_MINER_SCHEMA, "index-recursive-directories", [APPLICATIONS_TMP_DIR]),
+    (cfg.DCONF_MINER_SCHEMA, "index-single-directories", "[]"),
+    ]
+
 # Copy rate, 10KBps (1024b/100ms)
 SLOWCOPY_RATE = 1024
 
@@ -99,21 +104,7 @@ class CommonTrackerApplicationTest (ut.TestCase):
 
 
         self.system = TrackerSystemAbstraction ()
-
-        if (os.path.exists (os.path.join (os.getcwd(),
-                                          "test-configurations",
-                                          "applications"))):
-            # Use local directory if available
-            confdir = os.path.join (os.getcwd(),
-                                    "test-configurations",
-                                    "applications")
-        else:
-            confdir = os.path.join (cfg.DATADIR,
-                                    "tracker-tests",
-                                    "test-configurations",
-                                    "applications")
-
-        self.system.tracker_all_testing_start (confdir)
+        self.system.tracker_all_testing_start (CONF_OPTIONS)
 
         # Returns when ready
         self.tracker = StoreHelper ()



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