From ee4de3aa28bd7dff298bbbbea87aead15813a5f1 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Sun, 2 May 2021 22:05:51 +0200 Subject: [PATCH] Allow to run the test-suite in parallel when more versions are built --- community-mysql.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/community-mysql.spec b/community-mysql.spec index af5b78a..df6c4c7 100644 --- a/community-mysql.spec +++ b/community-mysql.spec @@ -610,8 +610,11 @@ pushd %_vpath_builddir make test VERBOSE=1 pushd mysql-test cp ../../mysql-test/%{skiplist} . -# builds might happen at the same host, avoid collision -export MTR_BUILD_THREAD=%{__isa_bits} + +# Builds might happen at the same host, avoid collision +# The port used is calculated as 10 * MTR_BUILD_THREAD + 10000 +# The resulting port must be between 5000 and 32767 +export MTR_BUILD_THREAD=$(( $(date +%s) % 2200 )) ./mtr %{?with_debug:--debug-server} \ --parallel=auto --force --retry=2 \