1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-26 14:04:03 +03:00

busctl: add a test for busctl wait

This commit is contained in:
Ronan Pigott 2024-10-02 11:57:24 -07:00
parent 30465af656
commit 20c0711d8e

View File

@ -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 \