]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: use --nogpgcheck instead of --no-gpgchecks in TEST-88-UPGRADE
authorIvan Kruglov <mail@ikruglov.com>
Thu, 12 Mar 2026 12:14:40 +0000 (05:14 -0700)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 12 Mar 2026 13:40:05 +0000 (13:40 +0000)
--no-gpgchecks was introduced in 920483872449 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>
test/units/TEST-88-UPGRADE.sh

index faf3e3748ee8fff38ef6f9e91c39166d885ffb04..5cc1df21aae7ba3f91487c0471b2c09acc983ea4 100755 (executable)
@@ -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