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()