From: Jan Hak Date: Mon, 5 Oct 2020 08:23:25 +0000 (+0200) Subject: tests-extra: fixed result counting X-Git-Tag: v3.1.0~367 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfa4aa52de2c4b03f517ff776afc074fe18bfca4;p=thirdparty%2Fknot-dns.git tests-extra: fixed result counting Signed-off-by: Jan Hak --- diff --git a/tests-extra/runtests.py b/tests-extra/runtests.py index 887aa47682..7bd58649e9 100755 --- a/tests-extra/runtests.py +++ b/tests-extra/runtests.py @@ -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