From 03845fa2d145c62de5fe8d4a89de6e2d3da4e5c4 Mon Sep 17 00:00:00 2001 From: Mike FABIAN Date: Tue, 9 Jul 2024 18:40:47 +0200 Subject: [PATCH] Resolves: RHELMISC-5984 Fix CI tests better: Check for existence of directory instead of checking Fedora version. --- tests/smoke/runtest.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/smoke/runtest.sh b/tests/smoke/runtest.sh index ba932b1..90eda8f 100755 --- a/tests/smoke/runtest.sh +++ b/tests/smoke/runtest.sh @@ -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"