CI Tests: Regression/bz1430477-glibc-Missing-else-branch-in-libc-calloc: adds support for latest distros

This commit is contained in:
Sergey Kolosov 2024-07-10 13:51:32 +02:00
parent ecb359903b
commit 6544ca1016

View File

@ -54,9 +54,6 @@ rlJournalStart
rlPhaseEnd
rlPhaseStartTest "Building glibc"
if rlIsRHEL 7; then
rlRun -c "sed -i '/#\ Ensure\ timestamps/i \\touch intl/plural.c' $SPECDIR/glibc.spec"
fi
rlRun "rpmbuild -bc ${SPECDIR}/${PACKAGE}.spec &> glibc_build_log.txt" 0 "Unpacking $PACKAGE"
ISSUCCESS=$?
if [ $ISSUCCESS -ne 0 ]
@ -65,7 +62,13 @@ rlJournalStart
rlFail "Glibc compilation error"
fi
if rlIsRHEL "==10"; then
BUILDS="$BUILDDIR/glibc-2.39/build*"
elif rlIsFedora ">=41"; then
BUILDS="$BUILDDIR/glibc*build/glibc*/build*"
else
BUILDS="$BUILDDIR/glibc*/build*"
fi
rlLog "Found builds at:"
for build in $BUILDS; do
rlLog "$build"