mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
Merge pull request #582 from alexjacks92/develop
JavaIO flushing error and regression test email attachments
This commit is contained in:
commit
9115d9175d
@ -90,7 +90,7 @@ import org.sleuthkit.autopsy.coreutils.Logger;
|
||||
outputStringRedirect = null;
|
||||
|
||||
//gc process with its streams
|
||||
proc = null;
|
||||
//proc = null;
|
||||
|
||||
return output;
|
||||
}
|
||||
@ -137,7 +137,7 @@ import org.sleuthkit.autopsy.coreutils.Logger;
|
||||
logger.log(Level.INFO, aCommand + " exit value: " + exitVal);
|
||||
|
||||
//gc process with its streams
|
||||
proc = null;
|
||||
//proc = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -231,6 +231,10 @@ class TestRunner(object):
|
||||
|
||||
Reports.generate_reports(test_data)
|
||||
if(not test_data.overall_passed):
|
||||
diffFiles = [ f for f in os.listdir(test_data.output_path) if os.path.isfile(os.path.join(test_data.output_path,f)) ]
|
||||
for f in diffFiles:
|
||||
if f.endswith("Diff.txt"):
|
||||
Errors.add_email_attachment(os.path.join(test_data.output_path, f))
|
||||
Errors.add_email_attachment(test_data.common_log_path)
|
||||
return logres
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user