From 72e8a73ae0bdd1132fe60b4337fed2f253c71fc4 Mon Sep 17 00:00:00 2001 From: Renato Alves Date: Fri, 18 Jul 2014 13:20:06 +0100 Subject: [PATCH] Unittest - Add prefixes to task and taskd temporary folders --- test/basetest/task.py | 2 +- test/basetest/taskd.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/basetest/task.py b/test/basetest/task.py index 72286f22d..501e84df6 100644 --- a/test/basetest/task.py +++ b/test/basetest/task.py @@ -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 diff --git a/test/basetest/taskd.py b/test/basetest/taskd.py index 7616d7d39..c67ff3a6d 100644 --- a/test/basetest/taskd.py +++ b/test/basetest/taskd.py @@ -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")