Skip python-pytest-xdist in RHEL builds

python-pytest-xdist is unwanted in RHEL builds due to its dependencies.
It is used only to support the pytest "-n auto" flag to enable parallel
testing, but the tests are still run (serially) without it.
This commit is contained in:
Yaakov Selkowitz 2023-08-09 02:04:35 -04:00
parent bf44759b6c
commit 73dd6bc88a

View File

@ -28,7 +28,9 @@ BuildRequires: pkgconfig(libsystemd)
BuildRequires: python3-dbusmock
BuildRequires: python3-gobject-base
BuildRequires: python3-pytest
%if %{undefined rhel}
BuildRequires: python3-pytest-xdist
%endif
BuildRequires: /usr/bin/xmlto
Requires: dbus