summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-05-20 21:14:03 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-05-20 23:31:19 +0200
commit1f97c2da0c5e318117e3f8b30159f5bd53a48f89 (patch)
treed647e21fce8104c324e5c3477817841eeb1f0edd /test
parentMerge pull request #23439 from keszybz/kernel-install-verbose (diff)
downloadsystemd-1f97c2da0c5e318117e3f8b30159f5bd53a48f89.tar.xz
systemd-1f97c2da0c5e318117e3f8b30159f5bd53a48f89.zip
test: add test for bus introspection of portable1
Follow-up for #23454.
Diffstat (limited to 'test')
-rwxr-xr-xtest/units/testsuite-29.sh4
1 files changed, 4 insertions, 0 deletions
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