From dc2fb623acca526720f24bed3d4d1e2dda7c1c91 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 21 Jul 2022 21:29:43 +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. --- guestfs-tools.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/guestfs-tools.spec b/guestfs-tools.spec index b2f0704..2a214da 100644 --- a/guestfs-tools.spec +++ b/guestfs-tools.spec @@ -272,6 +272,13 @@ make V=1 %{?_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 + # Enable debugging. export LIBGUESTFS_DEBUG=1 export LIBGUESTFS_TRACE=1