From 3a06bd68bbc3c19fe2f70e37b45704374f8b179c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Wed, 29 Nov 2023 19:15:47 +0100 Subject: [PATCH] libmount: test utab options after helper call MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit See #2607 Signed-off-by: Thomas Weißschuh --- tests/ts/mount/special | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/tests/ts/mount/special b/tests/ts/mount/special index 359d8aaca7..40517e7116 100755 --- a/tests/ts/mount/special +++ b/tests/ts/mount/special @@ -23,6 +23,7 @@ MOUNTER="/sbin/mount.mytest" ts_init "$*" ts_check_test_command "$TS_CMD_MOUNT" +ts_check_test_command "$TS_CMD_UMOUNT" ts_skip_nonroot @@ -55,7 +56,29 @@ ts_init_subtest "username" $TS_CMD_MOUNT -t mytest -ouser=name,abc /foo /bar &> $TS_OUTPUT ts_finalize_subtest +ts_init_subtest "missing-options" + +cat > $MOUNTER < $TS_OUTPUT +cat "$LIBMOUNT_UTAB" \ + | grep "$mountpoint" \ + | sed -e "s|$mountpoint|/mountpoint|g" \ + &> $TS_OUTPUT +$TS_CMD_UMOUNT "$mountpoint" +unset LIBMOUNT_UTAB + +ts_finalize_subtest + rm -f $MOUNTER ts_finalize - -- 2.47.2