From: Karel Zak Date: Mon, 25 Jul 2011 13:54:28 +0000 (+0200) Subject: tests: add -o remount to libmount tests X-Git-Tag: v2.20-rc1~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94947a1971b5dbdf1414eb5356b9b554cdbf4ab5;p=thirdparty%2Futil-linux.git tests: add -o remount to libmount tests Signed-off-by: Karel Zak --- diff --git a/tests/expected/libmount/context-mount-flags b/tests/expected/libmount/context-mount-flags index fc73affb18..9606418630 100644 --- a/tests/expected/libmount/context-mount-flags +++ b/tests/expected/libmount/context-mount-flags @@ -1,3 +1,5 @@ successfully mounted ro,nosuid,noexec +successfully mounted +rw,nosuid,noexec successfully umounted diff --git a/tests/ts/libmount/context b/tests/ts/libmount/context index b63f8c55a6..8119ceec7f 100755 --- a/tests/ts/libmount/context +++ b/tests/ts/libmount/context @@ -106,6 +106,10 @@ $TESTPROG --mount -o ro,noexec,nosuid,strictatime $DEVICE $MOUNTPOINT >> $TS_OUT $TS_CMD_FINDMNT --kernel $MOUNTPOINT -o VFS-OPTIONS -n >> $TS_OUTPUT 2>&1 grep -q $DEVICE $LIBMOUNT_MTAB || \ echo "cannot found $DEVICE in $LIBMOUNT_MTAB" >> $TS_OUTPUT 2>&1 + +$TESTPROG --mount -o remount,rw $MOUNTPOINT >> $TS_OUTPUT 2>&1 +$TS_CMD_FINDMNT --kernel $MOUNTPOINT -o VFS-OPTIONS -n >> $TS_OUTPUT 2>&1 + $TESTPROG --umount $MOUNTPOINT >> $TS_OUTPUT 2>&1 grep -q $DEVICE $LIBMOUNT_MTAB && echo "umount failed: found $DEVICE in $LIBMOUNT_MTAB" >> $TS_OUTPUT 2>&1