From e5b4f571285dc618f70890801b306341eb3e3c7c Mon Sep 17 00:00:00 2001 From: Pyifan <37059868+Pyifan@users.noreply.github.com> Date: Tue, 4 Jun 2024 19:18:09 +0800 Subject: [PATCH] make 0/negative number of parts less fatal (#1095) Co-authored-by: Pyifan --- testplan/runnable/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testplan/runnable/base.py b/testplan/runnable/base.py index 6506dd072..fbfb28ee2 100644 --- a/testplan/runnable/base.py +++ b/testplan/runnable/base.py @@ -600,7 +600,8 @@ def _get_tasks( ) ) if num_of_parts < 1: - raise RuntimeError( + num_of_parts = 1 + self.logger.error( f"Calculated num_of_parts for {uid} is {num_of_parts}," " check the input runtime_data and auto_part_runtime_limit" )