From 0e746eddb8f63019d4e9591d991256b34d66aa35 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 21 Jul 2022 21:28:54 +0100 Subject: [PATCH] Skip tests on debug kernels These Rawhide kernels have become so slow that they are no longer able to run libguestfs in Koji. --- libguestfs.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libguestfs.spec b/libguestfs.spec index ec64999..0750614 100644 --- a/libguestfs.spec +++ b/libguestfs.spec @@ -773,8 +773,14 @@ make V=1 INSTALLDIRS=vendor %{?_smp_mflags} %check - %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 + export LIBGUESTFS_DEBUG=1 export LIBGUESTFS_TRACE=1 export LIBVIRT_DEBUG=1