From deef94ce7c3a062c210283c6fa899313673d93a5 Mon Sep 17 00:00:00 2001 From: Andrei Vagin Date: Sun, 4 Nov 2018 21:01:25 +0300 Subject: [PATCH] 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: Andrei Vagin --- test/zdtm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/zdtm.py b/test/zdtm.py index fc549c146..5c529ebe4 100755 --- a/test/zdtm.py +++ b/test/zdtm.py @@ -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: