Skip to content

Commit 320f543

Browse files
committed
Split tests between jobs
1 parent 23729b6 commit 320f543

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/clickhouse-test

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2956,11 +2956,14 @@ def do_run_tests(
29562956

29572957
processes = []
29582958
for _ in range(jobs):
2959+
tests_to_run = parallel_tests[:batch_size]
2960+
del parallel_tests[:batch_size]
2961+
29592962
process = multiprocessing.Process(
29602963
target=run_tests_process,
29612964
args=(
29622965
(
2963-
parallel_tests,
2966+
tests_to_run,
29642967
batch_size,
29652968
test_suite,
29662969
True,
@@ -2974,6 +2977,9 @@ def do_run_tests(
29742977
processes.append(process)
29752978
process.start()
29762979

2980+
# all of the tests are taken int account
2981+
assert(len(parallel_tests) == 0)
2982+
29772983
while processes:
29782984
sleep(0.1)
29792985
sys.stdout.flush()

0 commit comments

Comments
 (0)