diff options
Diffstat (limited to 'test/units/testsuite-63.sh')
-rwxr-xr-x | test/units/testsuite-63.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/units/testsuite-63.sh b/test/units/testsuite-63.sh index dd08f4e90e..9bbd700104 100755 --- a/test/units/testsuite-63.sh +++ b/test/units/testsuite-63.sh @@ -16,7 +16,7 @@ touch /tmp/test63 # Make sure systemd has sufficient time to hit the trigger limit for test63.path. # shellcheck disable=SC2016 -timeout 30 bash -c 'while ! test "$(systemctl show test63.path -P ActiveState)" = failed; do sleep .2; done' +timeout 30 bash -c 'until test "$(systemctl show test63.path -P ActiveState)" = failed; do sleep .2; done' test "$(systemctl show test63.service -P ActiveState)" = inactive test "$(systemctl show test63.service -P Result)" = success test "$(systemctl show test63.path -P Result)" = trigger-limit-hit @@ -34,7 +34,7 @@ test "$(systemctl show test63.path -P Result)" = success # Test that glob matching works too, with $TRIGGER_PATH systemctl start test63-glob.path touch /tmp/test63-glob-foo -timeout 60 bash -c 'while ! systemctl -q is-active test63-glob.service; do sleep .2; done' +timeout 60 bash -c 'until systemctl -q is-active test63-glob.service; do sleep .2; done' test "$(systemctl show test63-glob.service -P ActiveState)" = active test "$(systemctl show test63-glob.service -P Result)" = success |