From c02e4085d6d81dde6399baf0c32038febd3912f9 Mon Sep 17 00:00:00 2001 From: happyguoxy Date: Thu, 21 Nov 2024 18:05:58 +0800 Subject: [PATCH] test:alter crashgen report --- tests/pytest/auto_crash_gen.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/pytest/auto_crash_gen.py b/tests/pytest/auto_crash_gen.py index 26cd303d62..f6b31b4691 100755 --- a/tests/pytest/auto_crash_gen.py +++ b/tests/pytest/auto_crash_gen.py @@ -366,18 +366,18 @@ def main(): core_dir = "none" text = f''' - Result: {msg_dict[status]} - - Details - Owner: Jayden Jia - Start time: {starttime} - End time: {endtime} - Hostname: {hostname} - Commit: {git_commit} - Cmd: {cmd} - Log dir: {log_dir} - Core dir: {core_dir} - ''' +Result: {msg_dict[status]} + +Details +Owner: Jayden Jia +Start time: {starttime} +End time: {endtime} +Hostname: {hostname} +Commit: {git_commit} +Cmd: {cmd} +Log dir: {log_dir} +Core dir: {core_dir} +''' text_result=text.split("Result: ")[1].split("Details")[0].strip() print(text_result)