avocado.core.test: Replace `;` in workdir too

The `;` character is problematic for some makefiles, let's replace it
with `_` the same way we did for `:`. The result should still be
readable enough by human, it's guaranteed to be still unique which
concludes all requirements for machines regarding workdir.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 eb89520e
......@@ -273,8 +273,9 @@ class Test(unittest.TestCase):
@data_structures.LazyProperty
def workdir(self):
basename = os.path.basename(self.logdir)
return utils_path.init_dir(data_dir.get_tmp_dir(), basename.replace(':', '_'))
basename = (os.path.basename(self.logdir).replace(':', '_')
.replace(';', '_'))
return utils_path.init_dir(data_dir.get_tmp_dir(), basename)
@data_structures.LazyProperty
def srcdir(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册