diff --git a/bin/docker_detection_tester/modules/testing_service.py b/bin/docker_detection_tester/modules/testing_service.py index dbfcad65cf..7511de18a0 100644 --- a/bin/docker_detection_tester/modules/testing_service.py +++ b/bin/docker_detection_tester/modules/testing_service.py @@ -354,6 +354,7 @@ def test_detection(splunk_ip:str, splunk_port:int, splunk_password:str, detectio abs_folder_path = mkdtemp(prefix="DATA_", dir=attack_data_root_folder) success = execute_tests(splunk_ip, splunk_port, splunk_password, detection.testFile.tests, abs_folder_path, wait_on_failure, wait_on_completion, container) + os.removedirs(abs_folder_path) detection.get_detection_result() #Delete the folder and all of the data inside of it #shutil.rmtree(abs_folder_path)