We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8813826 commit 93143b6Copy full SHA for 93143b6
test/units/testsuite-63.sh
@@ -15,10 +15,10 @@ systemctl start test63.path
15
touch /tmp/test63
16
17
# Make sure systemd has sufficient time to hit the trigger limit for test63.path.
18
-sleep 2
+# shellcheck disable=SC2016
19
+timeout 30 bash -c 'while ! test "$(systemctl show test63.path -P ActiveState)" = failed; do sleep .2; done'
20
test "$(systemctl show test63.service -P ActiveState)" = inactive
21
test "$(systemctl show test63.service -P Result)" = success
-test "$(systemctl show test63.path -P ActiveState)" = failed
22
test "$(systemctl show test63.path -P Result)" = trigger-limit-hit
23
24
# Test that starting the service manually doesn't affect the path unit.
0 commit comments