]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
TEST-88-UPGRADE: Stop resolved hook socket before downgrading
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 25 Nov 2025 09:41:24 +0000 (10:41 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 25 Nov 2025 10:49:31 +0000 (11:49 +0100)
Otherwise it'll remain active and cause networkd to get started again
during the downgrade.

test/units/TEST-88-UPGRADE.sh

index 8bff38d24771999a02d3001bfe6c6d0e9f8f472c..96bc8f8aee0f44249b73d580b67bfb901d2dd28d 100755 (executable)
@@ -81,11 +81,11 @@ systemd-run --on-calendar="@$after_2h" -u upgrade_timer_test date
 timer1=$(systemctl show -P TimersCalendar upgrade_timer_test.timer)
 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
 
+dnf downgrade -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
     networkd=1