diff --git a/test/falco_test.py b/test/falco_test.py index 53f2bbb52e3..958baf44361 100644 --- a/test/falco_test.py +++ b/test/falco_test.py @@ -585,7 +585,8 @@ def test(self): self.check_rules_warnings(res) if len(self.rules_events) > 0: self.check_rules_events(res) - self.check_detections(res) + if len(self.validate_rules_file) == 0: + self.check_detections(res) if len(self.detect_counts) > 0: self.check_detections_by_rule(res) self.check_json_output(res)