Skip to content

Commit 5b5dc2e

Browse files
committed
Assigning all of the parallel_tests to the sub-processes
1 parent 6c6ad69 commit 5b5dc2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/clickhouse-test

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2949,7 +2949,7 @@ def do_run_tests(
29492949
# TODO: add shuffle for sequential tests
29502950
random.shuffle(test_suite.parallel_tests)
29512951

2952-
batch_size = len(test_suite.parallel_tests) // jobs
2952+
batch_size = math.ceil(len(test_suite.parallel_tests) / jobs)
29532953
manager = multiprocessing.Manager()
29542954
parallel_tests = manager.list()
29552955
parallel_tests.extend(test_suite.parallel_tests)
@@ -3010,6 +3010,7 @@ def do_run_tests(
30103010
for p in processes[:]:
30113011
if not p.is_alive():
30123012
processes.remove(p)
3013+
30133014
if test_suite.sequential_tests:
30143015
run_tests_array(
30153016
(

0 commit comments

Comments
 (0)