Work around debuginfo-install hiccups on Rawhide

This commit is contained in:
Václav Kadlčík 2025-11-06 08:40:54 +01:00
commit 1aa0ec0c00

View file

@ -28,10 +28,14 @@ rlJournalStart
rlAssertRpm --all
export COLLECTIONS="$_COLLECTIONS"
# We need kernel-tools' debuginfo, with *matching* version-release
# We /may/ need kernel-tools' debuginfo, with *matching* version-release.
# On Fedora rawhide, the debuginfo is sometimes unreachable but luckily
# for us, the test passes just as well.
rlRun "KERNEL_TOOLS_VERSION_RELEASE=$(rpm -q --qf='%{VERSION}-%{RELEASE}' kernel-tools.${PRI_ARCH})"
rlRun "debuginfo-install -y kernel-tools-${KERNEL_TOOLS_VERSION_RELEASE}.${PRI_ARCH}"
rlAssertRpm "kernel-tools-debuginfo-${KERNEL_TOOLS_VERSION_RELEASE}.${PRI_ARCH}"
rlRun "debuginfo-install -y kernel-tools-${KERNEL_TOOLS_VERSION_RELEASE}.${PRI_ARCH}" 0-255
if ! rlIsFedora; then
rlAssertRpm "kernel-tools-debuginfo-${KERNEL_TOOLS_VERSION_RELEASE}.${PRI_ARCH}"
fi
rlRun "TmpDir=\$(mktemp -d)"
rlRun "pushd $TmpDir"