]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
busctl: add a test for busctl wait 34555/head
authorRonan Pigott <ronan@rjp.ie>
Wed, 2 Oct 2024 18:57:24 +0000 (11:57 -0700)
committerRonan Pigott <ronan@rjp.ie>
Sun, 13 Oct 2024 06:21:37 +0000 (23:21 -0700)
test/units/TEST-74-AUX-UTILS.busctl.sh

index 3ef94e5cb9f3b81a5a86a525bddd34d5e302aaa8..eb1f9e265d773e9715452d0d9550323d5a86b153 100755 (executable)
@@ -53,6 +53,10 @@ busctl emit --auto-start=no --destination=systemd-logind.service \
             /org/freedesktop/login1 org.freedesktop.login1.Manager \
             PrepareForShutdown b false
 
+systemd-run --quiet --service-type=notify --unit=test-busctl-wait --pty \
+       -p ExecStartPost="busctl emit /test org.freedesktop.fake1 TestSignal s success" \
+       busctl --timeout=3 wait /test org.freedesktop.fake1 TestSignal | grep -qF 's "success"'
+
 busctl get-property org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager \
                     Version
 busctl get-property --verbose \