Merge pull request #582 from alexjacks92/develop

JavaIO flushing error and regression test email attachments
This commit is contained in:
Richard Cordovano 2014-04-01 19:38:38 -04:00
commit 9115d9175d
2 changed files with 6 additions and 2 deletions

View File

@ -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;
}
/**

View File

@ -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