Unittest - Add prefixes to task and taskd temporary folders
This commit is contained in:
@@ -31,7 +31,7 @@ class Task(object):
|
||||
|
||||
# Configuration of the isolated environment
|
||||
self._original_pwd = os.getcwd()
|
||||
self.datadir = tempfile.mkdtemp()
|
||||
self.datadir = tempfile.mkdtemp(prefix="task_")
|
||||
self.taskrc = os.path.join(self.datadir, "test.rc")
|
||||
|
||||
# Ensure any instance is properly destroyed at session end
|
||||
|
||||
@@ -50,7 +50,7 @@ class Taskd(object):
|
||||
|
||||
# Will hold the taskd subprocess if it's running
|
||||
self.proc = None
|
||||
self.datadir = tempfile.mkdtemp()
|
||||
self.datadir = tempfile.mkdtemp(prefix="taskd_")
|
||||
self.tasklog = os.path.join(self.datadir, "taskd.log")
|
||||
self.taskpid = os.path.join(self.datadir, "taskd.pid")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user