mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
Remove data after a single detection
is tested instead of when all detections have finished testing.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user