From: Yu Watanabe Date: Tue, 3 Dec 2024 21:34:43 +0000 (+0900) Subject: TEST-17: use 'udevadm control --reload' or 'systemctl reload systemd-udevd.service... X-Git-Tag: v258-rc1~1809^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F35458%2Fhead;p=thirdparty%2Fsystemd.git TEST-17: use 'udevadm control --reload' or 'systemctl reload systemd-udevd.service' for reloading udev.conf These should be equivalent. For coverage, one subtest uses systemctl and another uses udevadm. --- diff --git a/test/units/TEST-17-UDEV.03.sh b/test/units/TEST-17-UDEV.03.sh index d6b31622588..56ecf49e3b0 100755 --- a/test/units/TEST-17-UDEV.03.sh +++ b/test/units/TEST-17-UDEV.03.sh @@ -27,7 +27,7 @@ event_timeout=10 timeout_signal=SIGABRT EOF - systemctl restart systemd-udevd.service + systemctl reload systemd-udevd.service } # shellcheck disable=SC2317 @@ -40,7 +40,7 @@ teardown() { rm -rf "$TMPDIR" rm -f "$TEST_RULE" "$TEST_CONF" - systemctl restart systemd-udevd.service + systemctl reload systemd-udevd.service } run_test_timeout() { diff --git a/test/units/TEST-17-UDEV.device_is_processing.sh b/test/units/TEST-17-UDEV.device_is_processing.sh index 88e4b5a6bd3..d3b48e780e4 100755 --- a/test/units/TEST-17-UDEV.device_is_processing.sh +++ b/test/units/TEST-17-UDEV.device_is_processing.sh @@ -18,7 +18,7 @@ at_exit() { # Forcibly kills sleep command invoked by the udev rule before restarting, # otherwise systemctl restart below will takes longer. killall -KILL sleep - systemctl restart systemd-udevd.service + udevadm control --reload ip link del "$IFNAME" } @@ -36,7 +36,7 @@ cat >/run/udev/rules.d/99-testsuite.rules <