TEST-99-RPM: use releasever of the host system
parent
7c62555bcf
commit
286685cb72
|
|
@ -30,12 +30,12 @@ test_run() {
|
||||||
"$TESTDIR"/dracut-[0-9]*.$(arch).rpm \
|
"$TESTDIR"/dracut-[0-9]*.$(arch).rpm \
|
||||||
"$TESTDIR"/dracut-network-[0-9]*.$(arch).rpm \
|
"$TESTDIR"/dracut-network-[0-9]*.$(arch).rpm \
|
||||||
"$rootdir/$TESTDIR/"
|
"$rootdir/$TESTDIR/"
|
||||||
|
. /etc/os-release
|
||||||
dnf_or_yum=yum
|
dnf_or_yum=yum
|
||||||
dnf_or_yum_cmd=yum
|
dnf_or_yum_cmd=yum
|
||||||
command -v dnf >/dev/null && { dnf_or_yum="dnf"; dnf_or_yum_cmd="dnf --allowerasing"; }
|
command -v dnf >/dev/null && { dnf_or_yum="dnf"; dnf_or_yum_cmd="dnf --allowerasing"; }
|
||||||
for (( i=0; i < 5 ; i++)); do
|
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 \
|
--enablerepo=fedora --enablerepo=updates \
|
||||||
install -y \
|
install -y \
|
||||||
$dnf_or_yum \
|
$dnf_or_yum \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue