[tracker] functional-tests: Updated application tests using dconf
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] functional-tests: Updated application tests using dconf
- Date: Tue, 22 Mar 2011 16:01:57 +0000 (UTC)
commit 4ef7cceeb9079df78acfaf7ccfef7ae8634bd85d
Author: Ivan Frade <ivan frade nokia com>
Date: Tue Mar 22 13:59:35 2011 +0200
functional-tests: Updated application tests using dconf
.../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]