[tracker/gsettings-remaining-bits] functional-tests: Writeback test set its configuration in a dconf profile
- From: Ivan Frade <ifrade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gsettings-remaining-bits] functional-tests: Writeback test set its configuration in a dconf profile
- Date: Tue, 22 Mar 2011 12:23:48 +0000 (UTC)
commit 4c9c8215fa30bd5864bf996cddc12d62bcac111f
Author: Ivan Frade <ivan frade nokia com>
Date: Tue Mar 22 13:54:28 2011 +0200
functional-tests: Writeback test set its configuration in a dconf profile
.../functional-tests/common/utils/writebacktest.py | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/tests/functional-tests/common/utils/writebacktest.py b/tests/functional-tests/common/utils/writebacktest.py
index da316d2..188436d 100644
--- a/tests/functional-tests/common/utils/writebacktest.py
+++ b/tests/functional-tests/common/utils/writebacktest.py
@@ -30,6 +30,11 @@ TEST_FILE_JPEG = "writeback-test-1.jpeg"
TEST_FILE_TIFF = "writeback-test-2.tif"
TEST_FILE_PNG = "writeback-test-4.png"
+CONF_OPTIONS = [
+ (cfg.DCONF_MINER_SCHEMA, "index-recursive-directories", [BASEDIR]),
+ (cfg.DCONF_MINER_SCHEMA, "index-single-directories", "[]"),
+ ]
+
def uri (filename):
return "file://" + os.path.join (BASEDIR, filename)
@@ -73,13 +78,7 @@ class CommonTrackerWritebackTest (ut.TestCase):
self.system = TrackerSystemAbstraction ()
- if (os.path.exists (os.getcwd() + "/test-configurations/writeback")):
- # Use local directory if available
- confdir = os.getcwd() + "/test-configurations/writeback"
- else:
- confdir = os.path.join (cfg.DATADIR, "tracker-tests",
- "test-configurations", "writeback")
- self.system.tracker_writeback_testing_start (confdir)
+ self.system.tracker_writeback_testing_start (CONF_OPTIONS)
# Returns when ready
print "Ready to go!"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]