From 59b417a5f3c11660d72131198b90d8913e1ccc8b Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Fri, 8 Oct 2021 14:17:16 -0400 Subject: [PATCH] spec: Add `--without check` for skipping tests Makes it easier to skip tests for copr builds Signed-off-by: Cole Robinson --- qemu.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qemu.spec b/qemu.spec index a5e9348..745e768 100644 --- a/qemu.spec +++ b/qemu.spec @@ -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