public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Ondrej Mosnacek <omosnace@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] main: kernel/selinux-testsuite: don't try to install libbpf-devel if already installed
Date: Thu, 15 Oct 2026 09:13:02 GMT [thread overview]
Message-ID: <179205558239.1.7199160360386132078.tests-selinux-2b00f7ac488c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : main
Commit : 2b00f7ac488cfb4baec6ae1376b384fa7c7ad663
Author : Ondrej Mosnacek <omosnace@redhat.com>
Date : 2026-10-15T10:10:17+02:00
Stats : +1/-1 in 1 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/2b00f7ac488cfb4baec6ae1376b384fa7c7ad663?branch=main
Log:
kernel/selinux-testsuite: don't try to install libbpf-devel if already installed
Check if the RPM is already installed before trying to enable additional
repos.
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
---
diff --git a/kernel/selinux-testsuite/runtest.sh b/kernel/selinux-testsuite/runtest.sh
index cefb9e1..4ac6e17 100755
--- a/kernel/selinux-testsuite/runtest.sh
+++ b/kernel/selinux-testsuite/runtest.sh
@@ -194,7 +194,7 @@ rlJournalStart
rlRun "installDeps \$REQUIRES" 0 "Install requires"
# The CRB repo with libbpf-devel might not be enabled on RHEL
- if rlIsRHEL '>=8' && ! [ -e /run/ostree-booted ]; then
+ if ! rpm --quiet -q libbpf-devel && rlIsRHEL '>=8' && ! [ -e /run/ostree-booted ]; then
for repo in "rhel-CRB" "beaker-CRB"; do
rpm -q libbpf-devel &>/dev/null && break
rlRun "dnf install --enablerepo $repo -y libbpf-devel" 0-255
reply other threads:[~2026-10-15 9:13 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=179205558239.1.7199160360386132078.tests-selinux-2b00f7ac488c@fedoraproject.org \
--to=omosnace@redhat.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