mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Testing
Expose location of taskd.log and taskd.pid
This commit is contained in:
parent
29d5de1154
commit
08c11da702
1 changed files with 4 additions and 2 deletions
|
@ -43,6 +43,8 @@ class TaskdServer(object):
|
||||||
# Will hold the taskd subprocess if it's running
|
# Will hold the taskd subprocess if it's running
|
||||||
self.proc = None
|
self.proc = None
|
||||||
self.datadir = tempfile.mkdtemp()
|
self.datadir = tempfile.mkdtemp()
|
||||||
|
self.tasklog = os.path.join(self.datadir, "taskd.log")
|
||||||
|
self.taskpid = os.path.join(self.datadir, "taskd.pid")
|
||||||
|
|
||||||
# Make sure no TASKDDATA is defined
|
# Make sure no TASKDDATA is defined
|
||||||
try:
|
try:
|
||||||
|
@ -70,8 +72,8 @@ class TaskdServer(object):
|
||||||
run_cmd_wait(cmd)
|
run_cmd_wait(cmd)
|
||||||
|
|
||||||
self.config("server", "{0}:{1}".format(self.address, self.port))
|
self.config("server", "{0}:{1}".format(self.address, self.port))
|
||||||
self.config("log", os.path.join(self.datadir, "taskd.log"))
|
self.config("log", self.tasklog)
|
||||||
self.config("pid.file", os.path.join(self.datadir, "taskd.pid"))
|
self.config("pid.file", self.taskpid)
|
||||||
self.config("root", self.datadir)
|
self.config("root", self.datadir)
|
||||||
self.config("client.allow", "^task [2-9]")
|
self.config("client.allow", "^task [2-9]")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue