]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add test for bus introspection of portable1
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 May 2022 19:14:03 +0000 (04:14 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 May 2022 21:31:19 +0000 (06:31 +0900)
Follow-up for #23454.

test/units/testsuite-29.sh

index 2a2aa957990c023ae04b6b99c38385d63618cfad..e99e1d2cbab3002f1d3d67e231db83d0d5ab2652 100755 (executable)
@@ -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