]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: reset systemd-udevd.service restart counter
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 8 Dec 2023 17:01:42 +0000 (18:01 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 8 Dec 2023 17:14:05 +0000 (18:14 +0100)
Since we restart systemd-udevd here a couple of times, we might hit the
rate limit in later tests:

[   26.028355] testsuite-17.sh[2074]: + udevadm control -e
[   26.028355] testsuite-17.sh[2074]: + udevadm control -l emerg
[   26.126160] systemd[1]: systemd-udevd.service: Start request repeated too quickly.
[   26.126213] systemd[1]: systemd-udevd.service: Failed with result 'start-limit-hit'.
[   26.140310] systemd[1]: Failed to start systemd-udevd.service.
[   26.140897] systemd[1]: systemd-udevd-control.socket: Failed with result 'service-start-limit-hit'.
[   26.141286] systemd[1]: systemd-udevd-kernel.socket: Failed with result 'service-start-limit-hit'.
[   26.142225] testsuite-17.sh[2074]: + udevadm control -l alert
[   26.149206] udevadm[2088]: Failed to send request to set log level: No such file or directory

Follow-up to: 6ef512c0bb

test/units/testsuite-17.06.sh

index 4d452ff97c38ecb1847375b08759a09a9f965f9b..6d8364530377ae3b2bc58396b37f232fb1041288 100755 (executable)
@@ -64,5 +64,6 @@ rm /run/udev/rules.d/00-debug.rules
 rm /run/udev/rules.d/50-testsuite.rules
 
 udevadm control --reload
+systemctl reset-failed systemd-udevd.service
 
 exit 0