From a14a3d77e9783328a69072a1bfb0bb6e06ec2177 Mon Sep 17 00:00:00 2001 From: Jay W Date: Mon, 7 Feb 2022 22:25:37 +0000 Subject: [PATCH] Update python-psutil.spec Skip checks if running flatpak build. --- python-psutil.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python-psutil.spec b/python-psutil.spec index 9876d62..31985db 100644 --- a/python-psutil.spec +++ b/python-psutil.spec @@ -69,10 +69,14 @@ done %install %py3_install +# Ignore tests when building with flatpak-module-tools to avoid build failures +# when building inside VMs or containers. Flatpaks would usually build this package +# as dependency from stable and already tested branches. +%if ! 0%{?flatpak} %check make test CI_TESTING=1 PYTHON=%{__python3} PYTHONPATH=%{buildroot}/%{python3_sitearch} - +%endif %files -n python%{python3_pkgversion}-%{srcname} %license LICENSE