From ddbfc20c625749c77056052abca546ca377647e0 Mon Sep 17 00:00:00 2001 From: WendyInXian Date: Sun, 22 Sep 2024 16:53:14 +0800 Subject: [PATCH] fix the incorrect process number in dryrun When the processes number is greater than items, the chunk_size should be one, that is one time is assigned to one process. --- src/pabot/pabot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pabot/pabot.py b/src/pabot/pabot.py index fb95ade5..be0a7a9c 100644 --- a/src/pabot/pabot.py +++ b/src/pabot/pabot.py @@ -1772,7 +1772,7 @@ def _create_execution_items_for_dry_run( chunk_size = ( round(len(items) / processes_count) if len(items) > processes_count - else len(items) + else 1 ) chunked_items = list(_chunk_items(items, chunk_size)) _NUMBER_OF_ITEMS_TO_BE_EXECUTED += len(chunked_items)