spec: Add --without check for skipping tests

Makes it easier to skip tests for copr builds

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2021-10-08 14:17:16 -04:00
parent 9182556bd5
commit 59b417a5f3

View File

@ -1,3 +1,8 @@
# Provide a way to skip tests via rpmbuild `--without`
# This makes it easier to skip tests in copr repos, where
# the qemu test suite is historically flakey
%bcond_without check
%global libfdt_version 1.6.0
%global libseccomp_version 2.4.0
%global libusbx_version 1.0.23
@ -1728,6 +1733,7 @@ rm -rf %{static_buildroot}
%check
%if %{with check}
%if !%{tools_only}
pushd %{qemu_kvm_build}
@ -1744,6 +1750,8 @@ popd
# endif !tools_only
%endif
# endif with check
%endif
%post -n qemu-guest-agent