]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
TEST-99-RPM: use releasever of the host system
authorHarald Hoyer <harald@redhat.com>
Thu, 16 Aug 2018 11:20:40 +0000 (13:20 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 16 Aug 2018 11:20:40 +0000 (13:20 +0200)
test/TEST-99-RPM/test.sh

index 984b9385d1fc7502da37b72940028d0f0f7cd9b8..b4aca176c521fd7ab06fc8dbff442c6ab0785b82 100755 (executable)
@@ -30,12 +30,12 @@ test_run() {
        "$TESTDIR"/dracut-[0-9]*.$(arch).rpm \
        "$TESTDIR"/dracut-network-[0-9]*.$(arch).rpm \
        "$rootdir/$TESTDIR/"
-
+    . /etc/os-release
     dnf_or_yum=yum
     dnf_or_yum_cmd=yum
     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"/ --disablerepo='*' \
+        $dnf_or_yum_cmd -v --nogpgcheck --installroot "$rootdir"/ --releasever "$VERSION_ID" --disablerepo='*' \
                         --enablerepo=fedora --enablerepo=updates \
                         install -y \
                         $dnf_or_yum \