From 6040964164a03f28982cc605039af1225b45ed17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 10 Nov 2022 15:57:28 +0100 Subject: [PATCH] %check: Run tests with %{_smp_mflags} instead of -j0 -j0 means: Run tests in parallel, automatic number of workers, according to CPU count %{_smp_mflags} means: -j%{_smp_build_ncpus} where %{_smp_build_ncpus} is the CPU count by default Hence, this makes no difference unless %{_smp_build_ncpus} is manually clamped. In that case, we now respect the wishes of the builder/packager/etc. --- python3.12.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python3.12.spec b/python3.12.spec index c9f6563..6004bfa 100644 --- a/python3.12.spec +++ b/python3.12.spec @@ -1118,7 +1118,7 @@ CheckPython() { # we don't ship it in the RPM package. LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \ - -wW --slowest -j0 --timeout=1800 \ + -wW --slowest %{_smp_mflags} --timeout=1800 \ -i test_freeze_simple_script \ %if %{with bootstrap} -x test_distutils \