Resolves: RHELMISC-5984 Fix CI tests better: Check for existence of directory instead of checking Fedora version.

This commit is contained in:
Mike FABIAN 2024-07-09 18:40:47 +02:00
parent 20d3b41c16
commit 03845fa2d1

View File

@ -13,10 +13,10 @@ rlJournalStart
rlRun "rpm --define '_topdir $tmp' -i *src.rpm"
rlRun -t -l "mkdir BUILD" 0 "Creating BUILD directory"
rlRun -t -l "rpmbuild --noclean --nodeps --define '_topdir $tmp' -bp $tmp/SPECS/*spec"
if [ ${FEDORA_VERSION} -le "40" ]; then
rlRun -t -l "pushd BUILD/ibus-m17n-${VERSION}"
else
if [ -d BUILD/ibus-m17n-${VERSION}-build ]; then
rlRun -t -l "pushd BUILD/ibus-m17n-${VERSION}-build/ibus-m17n-${VERSION}"
else
rlRun -t -l "pushd BUILD/ibus-m17n-${VERSION}"
fi
rlRun "set -o pipefail"
rlRun -t -l "NOCONFIGURE=1 ./autogen.sh"