From 20c0711d8e51117ee457d9ffe02bdb40364a77dc Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Wed, 2 Oct 2024 11:57:24 -0700 Subject: [PATCH] busctl: add a test for busctl wait --- test/units/TEST-74-AUX-UTILS.busctl.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/units/TEST-74-AUX-UTILS.busctl.sh b/test/units/TEST-74-AUX-UTILS.busctl.sh index 3ef94e5cb9f..eb1f9e265d7 100755 --- a/test/units/TEST-74-AUX-UTILS.busctl.sh +++ b/test/units/TEST-74-AUX-UTILS.busctl.sh @@ -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 \