From 0b3a83a3edcecc486d2a15567810f988232c461c Mon Sep 17 00:00:00 2001 From: Sean Moss Date: Tue, 16 Apr 2013 15:51:37 -0400 Subject: [PATCH] Fixed autopsy error output --- Test/script/regression.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Test/script/regression.py b/Test/script/regression.py index 792a4d6475..e819f79f73 100644 --- a/Test/script/regression.py +++ b/Test/script/regression.py @@ -871,17 +871,17 @@ def generate_common_log(): for line in log: line = line.replace(rep_path, "CASE") if line.startswith("Exception"): - common_log.write("From " + file +":\n" + line + "\n") + common_log.write("From " + file +": " + line) elif line.startswith("WARNING"): - common_log.write("From " + file +":\n" + line + "\n") + common_log.write("From " + file +": " + line elif line.startswith("Error"): - common_log.write("From " + file +":\n" + line + "\n") + common_log.write("From " + file +": " + line) elif line.startswith("SEVERE"): - common_log.write("From " + file +":\n" + line + "\n") + common_log.write("From " + file +":" + line) else: - warning_log.write("From " + file +":\n" + line + "\n") + warning_log.write("From " + file +": " + line) log.close() - common_log.write("\n\n") + common_log.write("\n") common_log.close() case.sorted_log = Emailer.make_local_path(case.output_dir, case.image_name, case.image_name + "SortedErrors.txt") srtcmdlst = ["sort", case.common_log_path, "-o", case.sorted_log]