diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-03-06 18:27:38 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-03-06 22:54:52 +0100 |
commit | 46012433750869c5ff6792adcdc6bc973b1b9e0e (patch) | |
tree | 02e7986a7a0a9b3c00b61bc80da26402961e68b5 /test/units/testsuite-50.sh | |
parent | dissect: implement external helper plugin interface for /bin/mount (diff) | |
download | systemd-46012433750869c5ff6792adcdc6bc973b1b9e0e.tar.xz systemd-46012433750869c5ff6792adcdc6bc973b1b9e0e.zip |
test: add test for new /sbin/mount.ddi helper
Diffstat (limited to 'test/units/testsuite-50.sh')
-rwxr-xr-x | test/units/testsuite-50.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/units/testsuite-50.sh b/test/units/testsuite-50.sh index a072305739..cb99b811c9 100755 --- a/test/units/testsuite-50.sh +++ b/test/units/testsuite-50.sh @@ -424,6 +424,12 @@ grep -q -F '{"name":"b","type":"raw","class":"portable","ro":false,"path":"/run/ grep -q -F '{"name":"c","type":"raw","class":"extension","ro":false,"path":"/run/extensions/c.raw"' /tmp/discover.json rm /tmp/discover.json /run/machines/a.raw /run/portables/b.raw /run/extensions/c.raw +# Check that the /sbin/mount.ddi helper works +T="/tmp/mounthelper.$RANDOM" +mount -t ddi "${image}.gpt" "$T" -o ro,X-mount.mkdir,discard +umount -R "$T" +rmdir "$T" + echo OK >/testok exit 0 |