From: Frantisek Sumsal Date: Thu, 9 Mar 2023 10:34:14 +0000 (+0100) Subject: test: ignore `busctl tree` fails X-Git-Tag: v254-rc1~1077^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=15eda898af77bd3f5ec743497b72e86f3fadc5af;p=thirdparty%2Fsystemd.git test: ignore `busctl tree` fails As the test runs during machine bootup where jobs run in parallel, busctl might attempt to introspect a job that already finished and fail. Since in this case we're more interested in crashes/leaks, let's ignore the exit code. Follow-up to 16600a8661. --- diff --git a/test/units/testsuite-74.busctl.sh b/test/units/testsuite-74.busctl.sh index 44d8032d8bc..6e905a025a2 100755 --- a/test/units/testsuite-74.busctl.sh +++ b/test/units/testsuite-74.busctl.sh @@ -19,7 +19,10 @@ busctl status busctl status --machine=.host --augment-creds=no busctl status --user --machine=testuser@.host busctl status org.freedesktop.systemd1 -busctl tree +# Ignore the exit code here, since this runs during machine bootup, so busctl +# might attempt to introspect a job that already finished and fail, i.e.: +# Failed to introspect object /org/freedesktop/systemd1/job/335 of service org.freedesktop.systemd1: Unknown object '/org/freedesktop/systemd1/job/335'. +busctl tree || : busctl tree org.freedesktop.login1 busctl tree --list org.freedesktop.login1 busctl introspect org.freedesktop.systemd1 /org/freedesktop/systemd1