From ceb3232d0aaa7c09a95593878b7a501c5c5661dc Mon Sep 17 00:00:00 2001 From: Sean-M Date: Thu, 21 Feb 2013 16:08:02 -0500 Subject: [PATCH] added check for autopsy ant build --- Testing/script/regression.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Testing/script/regression.py b/Testing/script/regression.py index a6fd970e9b..76e2cb6a58 100644 --- a/Testing/script/regression.py +++ b/Testing/script/regression.py @@ -1329,7 +1329,7 @@ def antBuild(which, Build): ant.append("dist") antpth = make_local_path(case.output_dir, "ant" + which + "Output.txt") antout = open(antpth, 'a') - subprocess.call(ant, stdout=antout) + succd = subprocess.call(ant, stdout=antout) if which == "datamodel": chk = os.path.join("..", "..", "..","sleuthkit", "bindings", "java", "dist", "TSK_DataModel.jar") try: @@ -1341,6 +1341,13 @@ def antBuild(which, Build): attachl.append(antpth) send_email() sys.exit() + elif (succd != 0): + global errorem + global attachl + errorem += "Autopsy build failed.\n" + attachl.append(antpth) + send_email() + sys.exit()