From 46012433750869c5ff6792adcdc6bc973b1b9e0e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 6 Mar 2023 18:27:38 +0100 Subject: [PATCH] test: add test for new /sbin/mount.ddi helper --- test/units/testsuite-50.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.25.1