From: Lennart Poettering Date: Mon, 6 Mar 2023 17:27:38 +0000 (+0100) Subject: test: add test for new /sbin/mount.ddi helper X-Git-Tag: v254-rc1~1101^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=46012433750869c5ff6792adcdc6bc973b1b9e0e;p=thirdparty%2Fsystemd.git test: add test for new /sbin/mount.ddi helper --- diff --git a/test/units/testsuite-50.sh b/test/units/testsuite-50.sh index a0723057394..cb99b811c93 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