[tracker/tracker-0.12: 146/202] functional-tests: Disable initial sleep of tracker-miner-fs when testing.
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.12: 146/202] functional-tests: Disable initial sleep of tracker-miner-fs when testing.
- Date: Thu, 6 Oct 2011 18:00:43 +0000 (UTC)
commit 4e087faedd6a8ece4d332d472136f790a9ac63d7
Author: Sam Thursfield <sam thursfield codethink co uk>
Date: Thu Sep 22 19:05:41 2011 +0100
functional-tests: Disable initial sleep of tracker-miner-fs when testing.
tests/functional-tests/common/utils/helpers.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/tests/functional-tests/common/utils/helpers.py b/tests/functional-tests/common/utils/helpers.py
index af356ce..6d15cf7 100644
--- a/tests/functional-tests/common/utils/helpers.py
+++ b/tests/functional-tests/common/utils/helpers.py
@@ -75,6 +75,9 @@ class Helper:
path = getattr (self,
"PROCESS_PATH",
os.path.join (cfg.EXEC_PREFIX, self.PROCESS_NAME))
+ flags = getattr (self,
+ "FLAGS",
+ [])
if options.is_manual_start ():
print ("Start %s manually" % self.PROCESS_NAME)
@@ -85,7 +88,7 @@ class Helper:
FNULL = open ('/dev/null', 'w')
kws = { 'stdout': FNULL, 'stderr': FNULL }
- return subprocess.Popen ([path], **kws)
+ return subprocess.Popen ([path] + flags, **kws)
def _stop_process (self):
if options.is_manual_start ():
@@ -302,6 +305,8 @@ class MinerFsHelper (Helper):
PROCESS_PATH = os.path.join (cfg.EXEC_PREFIX, "tracker-miner-fs")
BUS_NAME = cfg.MINERFS_BUSNAME
+ FLAGS = ['--initial-sleep=0']
+
def _stop_process (self):
if options.is_manual_start ():
if self.available:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]