]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
tests-extra: fixed result counting
authorJan Hak <jan.hak@nic.cz>
Mon, 5 Oct 2020 08:23:25 +0000 (10:23 +0200)
committerDaniel Salzman <daniel.salzman@nic.cz>
Mon, 5 Oct 2020 08:32:03 +0000 (10:32 +0200)
Signed-off-by: Jan Hak <jan.hak@nic.cz>
tests-extra/runtests.py

index 887aa47682424139eba6ddfe949344ceed03dcb1..7bd58649e9f461227dd3eb802865594e1f433ce8 100755 (executable)
@@ -240,7 +240,7 @@ def main(args):
     global outs_dir
 
     tasks = multiprocessing.Queue()
-    results = multiprocessing.Queue()
+    results = multiprocessing.SimpleQueue()
 
     case_cnt = 0
     fail_cnt = 0
@@ -294,7 +294,7 @@ def main(args):
         job(tasks, results)
 
     while not results.empty():
-        a, b, c = results.get(block=False)
+        a, b, c = results.get()
         case_cnt += a
         fail_cnt += b
         skip_cnt += c