[MTR] Limit the number of testsuite execution workers

Explanation of the options per:
https://dev.mysql.com/doc/dev/mysql-server/latest/PAGE_MYSQL_TEST_RUN_PL.html

The MTR_MAX_PARALLEL environment variable, if set, specifies the maximum number
of parallel workers that can be spawned when the --parallel=auto option is specified.
If --parallel=auto is not specified, MTR_MAX_PARALLEL variable has no effect.
This commit is contained in:
Michal Schorm 2024-08-15 01:42:33 +02:00
parent badd81d2d5
commit 148a01af34

View File

@ -760,11 +760,12 @@ pushd %_vpath_builddir
#make test VERBOSE=1
pushd mysql-test
cp ../../mysql-test/%{skiplist} .
(
set -ex
cd %{buildroot}%{_datadir}/mysql-test
export MTR_MAX_PARALLEL=16
export common_testsuite_arguments=" %{?with_debug:--debug-server} \
--force --skip-combinations --report-unstable-tests --clean-vardir --nocheck-testcases \
--suite-timeout=900 --testcase-timeout=30 --port-base=$(( $(date +%s) % 20000 + 10000 )) \