test: add workaround for networkd downgrade issue

This commit is contained in:
Lennart Poettering
2025-11-15 07:52:42 +01:00
parent 6850f7f510
commit a719802ca3
+3
View File
@@ -83,6 +83,9 @@ timer2=$(systemctl show -P NextElapseUSecRealtime upgrade_timer_test.timer)
dnf downgrade -y --allowerasing --disablerepo '*' "$pkgdir"/distro/*.rpm
# FIXME: See https://github.com/systemd/systemd/pull/39293
systemctl stop systemd-networkd-resolve-hook.socket || true
# Some distros don't ship networkd, so the test will always fail
if command -v networkctl >/dev/null; then
networkd=1