提交 80cae841 编写于 作者: L Lukáš Doktor

plugins.xunit: Convert size to int

On python3 divisions are converted to float automatically, but floats
can't be supplied to seek.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 9df2a860
......@@ -71,7 +71,7 @@ class XUnitResult(Result):
if log_size < max_log_size:
text_output = logfile_obj.read()
else:
size = max_log_size / 2
size = int(max_log_size / 2)
logfile_obj.seek(0, 0)
text_output = logfile_obj.read(size)
text_output += ("\n\n--[ CUT DUE TO XML PER TEST "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册