]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: add -o remount to libmount tests
authorKarel Zak <kzak@redhat.com>
Mon, 25 Jul 2011 13:54:28 +0000 (15:54 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 25 Jul 2011 13:54:28 +0000 (15:54 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/libmount/context-mount-flags
tests/ts/libmount/context

index fc73affb18385f0085e0cd7fa310579b5162c421..96064186304f848a4ee015ed75d88173aec0aca9 100644 (file)
@@ -1,3 +1,5 @@
 successfully mounted
 ro,nosuid,noexec
+successfully mounted
+rw,nosuid,noexec
 successfully umounted
index b63f8c55a606d4d3b0b79af788ec36511b828cc1..8119ceec7f31e2794e60de18c06533fd044ef7aa 100755 (executable)
@@ -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