]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
TEST-99-RPM: ignore weak dependencies in dnf
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 24 Feb 2020 21:10:58 +0000 (22:10 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 28 Feb 2020 15:31:43 +0000 (16:31 +0100)
Weak dependencies are useless for this test and pollute the chroot,
causing unexpected fails.

test/TEST-99-RPM/test.sh

index 22d579f5538caca9ef760d2b7e7a040a79e859e3..af64c24a9b286e510736ef86d8fa9dc093a6dbd4 100755 (executable)
@@ -36,7 +36,7 @@ test_run() {
     command -v dnf >/dev/null && { dnf_or_yum="dnf"; dnf_or_yum_cmd="dnf --allowerasing"; }
     for (( i=0; i < 5 ; i++)); do
         $dnf_or_yum_cmd -v --nogpgcheck --installroot "$rootdir"/ --releasever "$VERSION_ID" --disablerepo='*' \
-                        --enablerepo=fedora --enablerepo=updates \
+                        --enablerepo=fedora --enablerepo=updates --setopt=install_weak_deps=False \
                         install -y \
                         $dnf_or_yum \
                         passwd \