From 1f97c2da0c5e318117e3f8b30159f5bd53a48f89 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 21 May 2022 04:14:03 +0900 Subject: test: add test for bus introspection of portable1 Follow-up for #23454. --- test/units/testsuite-29.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/units/testsuite-29.sh b/test/units/testsuite-29.sh index 2a2aa95799..e99e1d2cba 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 -- cgit v1.2.3