https://bugzilla.redhat.com/show_bug.cgi?id=1998886
Jerry James loganjerry@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |loganjerry@gmail.com Doc Type|--- |If docs needed, set a value
--- Comment #1 from Jerry James loganjerry@gmail.com --- I notice that the %check script is commented out with a note that a display is needed to run the tests. That's what Xvfb is for! If you add these BuildRequires:
BuildRequires: gtk3-devel BuildRequires: %{py3_dist pygobject} BuildRequires: %{py3_dist pytest} BuildRequires: xorg-x11-server-Xvfb
and the write the %check script like this:
%check PYTHONPATH=%{buildroot}%{python3_sitelib} xvfb-run -d %{_bindir}/pytest
then the tests run, and pass. (And, incidentally, reveal that the liblarch tests use multiple deprecated interfaces.)