]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
runner: fix tests always being run in quiet mode 558/head
authorJason Ish <jason.ish@oisf.net>
Sun, 10 Oct 2021 05:10:35 +0000 (23:10 -0600)
committerJason Ish <jason.ish@oisf.net>
Sun, 10 Oct 2021 05:53:52 +0000 (23:53 -0600)
Fix an early return introduced in
9839097b816d2f7e1cb00d4f4e98919565d122a1, which resulted in a quiet like
mode all the time.

run.py

diff --git a/run.py b/run.py
index 39dd6a52342756d6ec181eb5d0cfc1f76292ae05..3b7ae08cc77b2b7750e96a6b62e9923861d6d93e 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -646,7 +646,6 @@ class TestRunner:
                     r, expected_exit_code));
 
             check_value = self.check()
-            return check_value
 
         if not check_value["failure"] and not check_value["skipped"]:
             if not self.quiet:
@@ -711,9 +710,6 @@ class TestRunner:
         if count["failure"] or count["skipped"]:
             return count
 
-        # Covering cases like "tests/show-help" which do not have
-        # check.sh and/or no checks in test.yaml should be counted
-        # successful
         success_c = count["success"]
         count["success"] = 1 if not success_c else success_c