wazuh-ruleset icon indicating copy to clipboard operation
wazuh-ruleset copied to clipboard

Bugs in runtest.py script

Open Lopuiz opened this issue 5 years ago • 0 comments

Hello team!

I tested Ruleset and I have noted two bugs in runtest.py script:

  1. When a test fails test_decoders.xml and test_ruleset.xml files don't remove. I think it is due the function run end with error message.

https://github.com/wazuh/wazuh-ruleset/blob/725a0155cfde0a849729d9d174f03e1453e31242/tools/rules-testing/runtests.py#L99-L127

  1. We can't input a test file because it doesn't execute the test. It due lines 136-142 aren't tab correctly. https://github.com/wazuh/wazuh-ruleset/blob/725a0155cfde0a849729d9d174f03e1453e31242/tools/rules-testing/runtests.py#L129-L142

Best regards, Eva

Lopuiz avatar Oct 04 '19 11:10 Lopuiz