public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Veronika Syncakova <veva.syncakova@gmail.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] main: Fix for /libselinux/matchpathcon-in-chroot-env
Date: Wed, 22 Jul 2026 12:07:55 GMT [thread overview]
Message-ID: <178472207534.1.15991113493015481779.tests-selinux-e62cab0e38df@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : main
Commit : e62cab0e38df14d02c3c7b0134752509a5aeab7d
Author : Veronika Syncakova <veva.syncakova@gmail.com>
Date : 2026-07-22T11:10:59+02:00
Stats : +4/-7 in 1 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/e62cab0e38df14d02c3c7b0134752509a5aeab7d?branch=main
Log:
Fix for /libselinux/matchpathcon-in-chroot-env
If epel repo was installed, the release version was not recognized.
---
diff --git a/libselinux/matchpathcon-in-chroot-env/runtest.sh b/libselinux/matchpathcon-in-chroot-env/runtest.sh
index 5e74132..5a98804 100755
--- a/libselinux/matchpathcon-in-chroot-env/runtest.sh
+++ b/libselinux/matchpathcon-in-chroot-env/runtest.sh
@@ -40,13 +40,10 @@ fi
if yum install --help | grep -q skip-unavailable ; then
INSTALL_OPTION="${INSTALL_OPTION} --skip-unavailable"
fi
-# yum sometimes fails to detect the release version on CentOS 9
-if rlIsCentOS 9 ; then
- INSTALL_OPTION="${INSTALL_OPTION} --releasever 9"
-elif rlIsFedora ; then
- RELEASEVER=`grep VERSION_ID /etc/os-release | cut -d = -f 2`
- INSTALL_OPTION="${INSTALL_OPTION} --releasever ${RELEASEVER}"
-fi
+# detect release version
+test -e /etc/os-release && os_release='/etc/os-release' || os_release='/usr/lib/os-release'
+. "${os_release}"
+INSTALL_OPTION="${INSTALL_OPTION} --releasever ${VERSION_ID}"
rlJournalStart
rlPhaseStartSetup
reply other threads:[~2026-07-22 12:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178472207534.1.15991113493015481779.tests-selinux-e62cab0e38df@fedoraproject.org \
--to=veva.syncakova@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox