提交 869e6384 编写于 作者: C Cleber Rosa

Test: rely on TestId.str_filesystem for the workdir

Instead of making yet another "safe" version of the TestID filesystem
representation, let's rely on an already existing, used, and better
code.
Signed-off-by: NCleber Rosa <crosa@redhat.com>
上级 af04dd3a
......@@ -532,10 +532,8 @@ class Test(unittest.TestCase, TestData):
@property
def workdir(self):
if self.__workdir is None:
base_logdir = os.path.basename(self.logdir)
safe_base_logdir = base_logdir.replace(':', '_').replace(';', '_')
self.__workdir = os.path.join(data_dir.get_tmp_dir(),
safe_base_logdir)
self.name.str_filesystem)
return self.__workdir
@property
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册