Commit deef94ce authored by Andrei Vagin's avatar Andrei Vagin

test: use yaml.safe_dump to avoid dump without tags

safe_dump produces only standard YAML tags and
cannot represent an arbitrary Python object.

Reported-by: Mr Jenkins
Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
parent 565498a7
......@@ -1726,7 +1726,8 @@ class Launcher:
details = {'output': output}
tc.add_error_info(output = output)
print(testline, file=self.__file_report)
print("%s" % yaml.dump(details, explicit_start=True, explicit_end=True, default_style='|'), file=self.__file_report)
print("%s" % yaml.safe_dump(details, explicit_start=True,
explicit_end=True, default_style='|'), file=self.__file_report)
if sub['log']:
add_to_output(sub['log'])
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment