Don't enable libguestfs tests if we don't have libguestfs

This commit is contained in:
Richard W.M. Jones 2022-12-04 10:57:47 +00:00
parent eb4065d4ee
commit c5fbd4d470

View File

@ -731,7 +731,7 @@ export PYTHON=%{__python3}
%else
--without-libguestfs \
%endif
%ifarch %{complete_test_arches}
%ifarch !0%{?rhel} && 0%{?have_libguestfs} && %{complete_test_arches}
--enable-libguestfs-tests \
%else
--disable-libguestfs-tests \