From b5c8122cac28ba3ca1bb2d1685c8995b46097fea Mon Sep 17 00:00:00 2001 From: BraulioV Date: Tue, 16 Feb 2021 15:37:31 +0100 Subject: [PATCH] Truncate the logs before starting the daemons --- deps/wazuh_testing/wazuh_testing/vulnerability_detector.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/wazuh_testing/wazuh_testing/vulnerability_detector.py b/deps/wazuh_testing/wazuh_testing/vulnerability_detector.py index d68905e38b..b516063750 100644 --- a/deps/wazuh_testing/wazuh_testing/vulnerability_detector.py +++ b/deps/wazuh_testing/wazuh_testing/vulnerability_detector.py @@ -122,12 +122,12 @@ def magic(*args, **kwargs): func(*args, **kwargs) - control_service('start', daemon='wazuh-modulesd') - control_service('start', daemon='wazuh-db') - # Truncate ossec.log file.truncate_file(LOG_FILE_PATH) + control_service('start', daemon='wazuh-modulesd') + control_service('start', daemon='wazuh-db') + yield kwargs['request'].param clean_vuln_and_sys_programs_tables(agent=kwargs['mock_agent'])