From f52c0653d98aeb844762d14229c78adf171ccef2 Mon Sep 17 00:00:00 2001 From: Sean-M Date: Thu, 21 Feb 2013 15:02:52 -0500 Subject: [PATCH] Fix to Error catching --- Testing/script/regression.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Testing/script/regression.py b/Testing/script/regression.py index e830f41383..236f158ea0 100644 --- a/Testing/script/regression.py +++ b/Testing/script/regression.py @@ -1601,19 +1601,18 @@ def execute_test(): print("Here here here here here here here here here") print(case.common_log) print(failedbool) - logres = search_common_log("ERROR") + logres = search_common_log("TskCoreException") print(logres) if (len(logres)>0): failedbool = True global errorem errorem += "There were Autopsy errors.\n" + attachl.append(case.common_log) for lm in logres: errorem += lm print(errorem) - attachl.append(case.common_log) if failedbool: - ainsert = html.name - attachl.insert(0, ainsert) + attachl.insert(0, html.name) send_email() html.close() #email_send(HTML_email, None)