[tracker] functional-tests: miner-fs tests: boot the store in code and not with dbus autoactivation
- From: Ivan Frade <ifrade src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] functional-tests: miner-fs tests: boot the store in code and not with dbus autoactivation
- Date: Tue, 11 Jan 2011 15:40:14 +0000 (UTC)
commit 1fffae0146ef92b1866432992d8e429f0cffc0d7
Author: Ivan Frade <ivan frade nokia com>
Date: Tue Jan 11 17:36:46 2011 +0200
functional-tests: miner-fs tests: boot the store in code and not with dbus autoactivation
DBus autoactivation ignores the environment variables, so the store would run
with the default database and not the specific test DB locations.
tests/functional-tests/common/utils/system.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/functional-tests/common/utils/system.py b/tests/functional-tests/common/utils/system.py
index be4624c..aaa4cf9 100644
--- a/tests/functional-tests/common/utils/system.py
+++ b/tests/functional-tests/common/utils/system.py
@@ -368,6 +368,10 @@ class TrackerSystemAbstraction:
self.__stop_tracker_processes ()
self.set_up_environment (confdir, None)
+ # Start also the store. DBus autoactivation ignores the env variables.
+ self.store = TrackerStoreLifeCycle ()
+ self.store.start ()
+
self.miner_fs = TrackerMinerFsLifeCycle ()
self.miner_fs.start ()
@@ -383,6 +387,8 @@ class TrackerSystemAbstraction:
Stops the miner-fs and store running and unset all the XDG_*_HOME vars
"""
self.miner_fs.stop ()
+ self.store.stop ()
+
self.__stop_tracker_processes ()
self.unset_up_environment ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]