test: use --nogpgcheck instead of --no-gpgchecks in TEST-88-UPGRADE
--no-gpgchecks was introduced in 9204838724 but is only available in
dnf5. Use --nogpgcheck instead, which is supported by both dnf4 and
dnf5 (where it is an alias for --no-gpgchecks).
Fixes test failure on distros still using dnf4 (e.g. CentOS/RHEL 9).
Co-developed-by: Claude <claude@anthropic.com>
This commit is contained in:
committed by
Luca Boccassi
parent
10a1043216
commit
6eab41c813
@@ -84,7 +84,7 @@ timer2=$(systemctl show -P NextElapseUSecRealtime upgrade_timer_test.timer)
|
||||
# FIXME: See https://github.com/systemd/systemd/pull/39293
|
||||
systemctl stop systemd-networkd-resolve-hook.socket || true
|
||||
|
||||
dnf downgrade --no-gpgchecks -y --allowerasing --disablerepo '*' "$pkgdir"/distro/*.rpm
|
||||
dnf downgrade --nogpgcheck -y --allowerasing --disablerepo '*' "$pkgdir"/distro/*.rpm
|
||||
|
||||
# Some distros don't ship networkd, so the test will always fail
|
||||
if command -v networkctl >/dev/null; then
|
||||
@@ -105,7 +105,7 @@ fi
|
||||
check_sd
|
||||
|
||||
# Finally test the upgrade
|
||||
dnf -y upgrade --no-gpgchecks --disablerepo '*' "$pkgdir"/devel/*.rpm
|
||||
dnf -y upgrade --nogpgcheck --disablerepo '*' "$pkgdir"/devel/*.rpm
|
||||
|
||||
# TODO: sanity checks
|
||||
check_sd
|
||||
|
||||
Reference in New Issue
Block a user