]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
run.py: add failed logs on each failing condition
authorShivani Bhardwaj <shivanib134@gmail.com>
Thu, 27 Jul 2023 10:58:05 +0000 (16:28 +0530)
committerShivani Bhardwaj <shivanib134@gmail.com>
Thu, 27 Jul 2023 14:24:03 +0000 (19:54 +0530)
run.py

diff --git a/run.py b/run.py
index ba06e13a8b2762c0e9afdfb70d681f353b36618f..0025d5ef8f14e4c03b8e062cce34b970f9920661 100755 (executable)
--- a/run.py
+++ b/run.py
@@ -1006,6 +1006,7 @@ def run_test(dirpath, args, cwd, suricata_config):
         check_args_fail()
         with lock:
             count_dict["failed"] += 1
+            failedLogs.append(dirpath)
     except Exception as err:
         print("===> {}: FAILED: Unexpected exception: {}".format(os.path.basename(dirpath), err))
         traceback.print_exc()
@@ -1014,6 +1015,7 @@ def run_test(dirpath, args, cwd, suricata_config):
         with lock:
             check_args['fail'] = 1
             count_dict["failed"] += 1
+            failedLogs.append(dirpath)
             raise TerminatePoolError()
 
 def run_mp(jobs, tests, dirpath, args, cwd, suricata_config):