From f30a4c6997cc09bdd934eaaecc5639ee32cddbca Mon Sep 17 00:00:00 2001 From: pyth0n1c <87383215+pyth0n1c@users.noreply.github.com> Date: Mon, 20 Sep 2021 11:05:17 -0700 Subject: [PATCH] Re-added rebuild code for full test. --- .../detection_testing_execution.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/automated_detection_testing/ci/detection_testing_batch/detection_testing_execution.py b/automated_detection_testing/ci/detection_testing_batch/detection_testing_execution.py index bc8a2f8f69..d897b73067 100644 --- a/automated_detection_testing/ci/detection_testing_batch/detection_testing_execution.py +++ b/automated_detection_testing/ci/detection_testing_batch/detection_testing_execution.py @@ -115,7 +115,7 @@ def main(args): client.images.pull(DOCKER_HUB_CONTAINER_PATH) print("Finished downloading the image [%s]"%(DOCKER_HUB_CONTAINER_PATH)) - ''' + try: image = client.images.get(DOCKER_COMMIT_NAME) print("Found an image called [%s]. We will remove it"%(DOCKER_COMMIT_NAME)) @@ -172,13 +172,9 @@ def main(args): print("Committing the configured container: [%s]--->[%s]"%(BASE_CONTAINER_NAME, DOCKER_COMMIT_NAME)) base_container.commit(repository=DOCKER_COMMIT_NAME) - ''' - except Exception as e: - #Remove this since it exists in commented out section above. - print("There was an error getting the base container up and running. " - "We cannot recover from this: [%s]\nGoodbye..."%(str(e))) - sys.exit(1) + + print("Make all the threads...") results_queue = queue.Queue()