From 899ba3a0c26a8e8b1295bab98f7b9ec372fe3983 Mon Sep 17 00:00:00 2001 From: K-Embee <55490375+K-Embee@users.noreply.github.com> Date: Tue, 7 Apr 2020 15:20:33 +0200 Subject: [PATCH] Fixes runtests.py selective_testing --- tools/rules-testing/runtests.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/rules-testing/runtests.py b/tools/rules-testing/runtests.py index e40986326..0ec455924 100755 --- a/tools/rules-testing/runtests.py +++ b/tools/rules-testing/runtests.py @@ -133,10 +133,10 @@ def run(self, selective_test=False): selective_test += '.ini' else: selective_test = False - ossec_init = {} - initconfigpath = "/etc/ossec-init.conf" - getOssecConfig(ossec_init, initconfigpath) - provisionDR(ossec_init["DIRECTORY"]) - OT = OssecTester(ossec_init["DIRECTORY"]) - OT.run(selective_test) - cleanDR(ossec_init["DIRECTORY"]) + ossec_init = {} + initconfigpath = "/etc/ossec-init.conf" + getOssecConfig(ossec_init, initconfigpath) + provisionDR(ossec_init["DIRECTORY"]) + OT = OssecTester(ossec_init["DIRECTORY"]) + OT.run(selective_test) + cleanDR(ossec_init["DIRECTORY"])