public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: rpm-suppress-stderr: Drop '--installroot' from 'dnf download'
@ 2026-09-11 13:22 Jan Onderka
  0 siblings, 0 replies; only message in thread
From: Jan Onderka @ 2026-09-11 13:22 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : 8519ca13a76b693a2dd9cdb725995bf462b0fb2b
            Author : Jan Onderka <jonderka@redhat.com>
            Date   : 2025-02-04T12:36:41+01:00
            Stats  : +1/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/8519ca13a76b693a2dd9cdb725995bf462b0fb2b?branch=pr775-checkpolicy-revdeps

            Log:
            rpm-suppress-stderr: Drop '--installroot' from 'dnf download'

'dnf download' does not download rpm files if joined with --installroot option.

Fixes:
    [  BEGIN   ] :: Running 'dnf download --installroot=/tmp/tmp.Bw3ejLevcz/lower rpm-plugin-selinux selinux-policy selinux-policy-targeted '
    Updating Subscription Management repositories.
    Unable to read consumer identity

    This system is not registered with an entitlement server. You can use subscription-manager to register.

    No package rpm-plugin-selinux available.
    Exiting due to strict setting.
    Error: No package rpm-plugin-selinux available.
    [   FAIL   ] :: Command 'dnf download --installroot=/tmp/tmp.Bw3ejLevcz/lower rpm-plugin-selinux selinux-policy selinux-policy-targeted ' (Expected 0, got 1)

---
diff --git a/selinux-policy/rpm-suppress-stderr/test.sh b/selinux-policy/rpm-suppress-stderr/test.sh
index 9325a66..2fd8fd1 100755
--- a/selinux-policy/rpm-suppress-stderr/test.sh
+++ b/selinux-policy/rpm-suppress-stderr/test.sh
@@ -37,7 +37,7 @@ rlJournalStart
 	rlRun "dnf -y install --installroot=$tmp/lower diffutils libfdisk libselinux-utils libutempter policycoreutils util-linux rpm ${INSTALL_OPTION}"
 	rlRun "mkdir download"
 	rlRun "cd download"
-	rlRun "dnf download --installroot=$tmp/lower rpm-plugin-selinux selinux-policy selinux-policy-targeted ${DOWNLOAD_OPTION}"
+	rlRun "dnf download rpm-plugin-selinux selinux-policy selinux-policy-targeted ${DOWNLOAD_OPTION}"
 	rlRun "mv -v *rpm $tmp/lower"
 	rlRun "cd .."
 	rlRun "fuse-overlayfs -o lowerdir=$tmp/lower/ -o upperdir=$tmp/upper/ -o workdir=$tmp/work/ $tmp/merged/"

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11 13:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 13:22 [tests/selinux] pr775-checkpolicy-revdeps: rpm-suppress-stderr: Drop '--installroot' from 'dnf download' Jan Onderka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox