diff --git a/nbdkit.spec b/nbdkit.spec index 190816e..407b445 100644 --- a/nbdkit.spec +++ b/nbdkit.spec @@ -19,6 +19,13 @@ # often broken on non-x86_64 arches. %global complete_test_arches x86_64 +# If the test suite is broken on a particular architecture, document +# it as a bug and add it to this list. +# +# aarch64: https://bugzilla.redhat.com/show_bug.cgi?id=1833346 +#global broken_test_arches NONE +%global broken_test_arches aarch64 + %if 0%{?rhel} == 7 # On RHEL 7, nothing in the virt stack is shipped on aarch64 and # libguestfs was not shipped on POWER (fixed in 7.5). We could in @@ -647,6 +654,7 @@ rm $RPM_BUILD_ROOT%{_mandir}/man1/nbdkit-ext2-plugin.1* %check +%ifnarch %{broken_test_arches} # Workaround for broken libvirt (RHBZ#1138604). mkdir -p $HOME/.cache/libvirt @@ -672,6 +680,7 @@ make %{?_smp_mflags} check || { cat tests/test-suite.log exit 1 } +%endif %if 0%{?have_ocaml}