From f251ff1be75bf64c0a48f47bde0d8d47fa5682ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 21 Nov 2023 12:02:40 +0100 Subject: [PATCH] Run the tests directly without make The `make test` command runs `make build` which runs `setup.py build_ext -i`. We want to ensure we are testing the installed extension modules. --- python-psutil.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python-psutil.spec b/python-psutil.spec index e4f0fcb..7a42fc8 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -24,7 +24,6 @@ Patch: python-psutil-include-unistd.h.patch BuildRequires: gcc BuildRequires: sed -BuildRequires: make BuildRequires: python%{python3_pkgversion}-devel # Test dependencies BuildRequires: procps-ng @@ -89,7 +88,9 @@ done # That way, some unreliable tests are skipped and some timeouts are extended. # Previously, this was done by the CI_TESTING variable, but that works no more. # Alternative is to set GITHUB_ACTIONS but that has undesirable side effects. -make test APPVEYOR=1 PYTHON=%{__python3} PYTHONPATH=%{buildroot}/%{python3_sitearch} + +# Note: We deliberately bypass the Makefile here to test the installed modules. +APPVEYOR=1 %{py3_test_envvars} %{python3} psutil/tests/runner.py %endif