From: Yu Watanabe Date: Fri, 20 May 2022 19:14:03 +0000 (+0900) Subject: test: add test for bus introspection of portable1 X-Git-Tag: v251~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1f97c2da0c5e318117e3f8b30159f5bd53a48f89;p=thirdparty%2Fsystemd.git test: add test for bus introspection of portable1 Follow-up for #23454. --- diff --git a/test/units/testsuite-29.sh b/test/units/testsuite-29.sh index 2a2aa957990..e99e1d2cbab 100755 --- a/test/units/testsuite-29.sh +++ b/test/units/testsuite-29.sh @@ -40,10 +40,12 @@ systemctl is-active minimal-app0-bar.service systemctl is-active minimal-app0-foo.service && exit 1 portablectl list | grep -q -F "minimal_1" +busctl tree org.freedesktop.portable1 --no-pager | grep -q -F '/org/freedesktop/portable1/image/minimal_5f1' portablectl detach --now --runtime /usr/share/minimal_1.raw minimal-app0 portablectl list | grep -q -F "No images." +busctl tree org.freedesktop.portable1 --no-pager | grep -q -F '/org/freedesktop/portable1/image/minimal_5f1' && exit 1 # portablectl also works with directory paths rather than images @@ -63,10 +65,12 @@ systemctl is-active minimal-app0-bar.service systemctl is-active minimal-app0-foo.service && exit 1 portablectl list | grep -q -F "minimal_1" +busctl tree org.freedesktop.portable1 --no-pager | grep -q -F '/org/freedesktop/portable1/image/minimal_5f1' portablectl detach --now --enable --runtime /tmp/minimal_1 minimal-app0 portablectl list | grep -q -F "No images." +busctl tree org.freedesktop.portable1 --no-pager | grep -q -F '/org/freedesktop/portable1/image/minimal_5f1' && exit 1 portablectl "${ARGS[@]}" attach --now --runtime --extension /usr/share/app0.raw /usr/share/minimal_0.raw app0