Skip tests on debug kernels

These Rawhide kernels have become so slow that they are no longer able
to run libguestfs in Koji.
This commit is contained in:
Richard W.M. Jones 2022-07-21 21:29:43 +01:00
parent 76f260fe46
commit dc2fb623ac

View File

@ -272,6 +272,13 @@ make V=1 %{?_smp_mflags}
%check %check
%ifarch %{test_arches} %ifarch %{test_arches}
# Only run the tests with non-debug (ie. non-Rawhide) kernels.
# XXX This tests for any debug kernel installed.
if grep CONFIG_DEBUG_MUTEXES=y /lib/modules/*/config ; then
echo "Skipping tests because debug kernel is installed"
exit 0
fi
# Enable debugging. # Enable debugging.
export LIBGUESTFS_DEBUG=1 export LIBGUESTFS_DEBUG=1
export LIBGUESTFS_TRACE=1 export LIBGUESTFS_TRACE=1