From d282b9922b37b15a291ec911a03b3033917444f3 Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Sun, 31 Jan 2021 21:14:54 +0100 Subject: [PATCH] Allow to run the test-suite in parallel when more versions are built --- mariadb.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mariadb.spec b/mariadb.spec index 567a95b..815d41a 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -1191,8 +1191,10 @@ rm %{buildroot}%{_mandir}/man1/mbstream.1* %if %runselftest # hack to let 32- and 64-bit tests run concurrently on same build machine export MTR_PARALLEL=1 -# 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 )) # The cmake build scripts don't provide any simple way to control the # options for mysql-test-run, so ignore the make target and just call it