]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: don't compare btrfs mount options
authorKarel Zak <kzak@redhat.com>
Tue, 8 Mar 2016 12:38:36 +0000 (13:38 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Mar 2016 12:38:36 +0000 (13:38 +0100)
We don't control mount options in the mountinfo file and the options
depend on kernel version. It does not make sense to hardcode the
options in the expected outputs.

Note that libmount should be portable enough to be able to work with
all kernel versions. It seems better to check libmount functionality
than kernel mount options formatting.

Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/libmount/context-utab
tests/expected/libmount/context-utab-py
tests/ts/libmount/context-utab
tests/ts/libmount/context-utab-py

index 2149373b8fdf73e5e42e55d058aea70da259e74c..10d4d566a862b9a7b00fd7067b4473f7af26504a 100644 (file)
@@ -2,7 +2,4 @@ Create partitions
 Create filesystem
 Do tests...
 Create filesystem [btrfs]
-All mount options (btrfs subvolume + utab) ---
-rw,relatime,ssd,space_cache,uhelper=foo
----
 ...done.
index 2149373b8fdf73e5e42e55d058aea70da259e74c..10d4d566a862b9a7b00fd7067b4473f7af26504a 100644 (file)
@@ -2,7 +2,4 @@ Create partitions
 Create filesystem
 Do tests...
 Create filesystem [btrfs]
-All mount options (btrfs subvolume + utab) ---
-rw,relatime,ssd,space_cache,uhelper=foo
----
 ...done.
index 38bc1701c766e795cf56d53cb0e6cc8eb51149f9..4eb68ffcb4c305181606ec6a0b7d5ceaf00219f6 100755 (executable)
@@ -112,9 +112,13 @@ grep -q $DEVICE $LIBMOUNT_UTAB || \
        echo "cannot find $DEVICE in $LIBMOUNT_UTAB" >> $TS_OUTPUT 2>&1
 ts_finalize_subtest
 
-ts_log "All mount options (btrfs subvolume + utab) ---"
-$TS_CMD_FINDMNT --mtab $MOUNTPOINT -o OPTIONS -n >> $TS_OUTPUT 2>&1
-ts_log "---"
+# Don't temporary write btrfs mount options to the test output,
+# the options depend on kernel version (since 4.2 it contains
+# subvol= and subvolid=).
+#
+#ts_log "All mount options (btrfs subvolume + utab) ---"
+#$TS_CMD_FINDMNT --mtab $MOUNTPOINT -o OPTIONS -n >> $TS_OUTPUT 2>&1
+#ts_log "---"
 
 ts_init_subtest "umount-subvol"
 ts_valgrind $TESTPROG --umount $MOUNTPOINT >> $TS_OUTPUT 2>&1
index fdde63a7aaa5ecc84b4a67aa6d05257303d5e641..b781fafd3a4845c9f9264f5648da28abb9f9f8ce 100755 (executable)
@@ -113,9 +113,14 @@ grep -q $DEVICE $LIBMOUNT_UTAB || \
        echo "cannot find $DEVICE in $LIBMOUNT_UTAB" >> $TS_OUTPUT 2>&1
 ts_finalize_subtest
 
-ts_log "All mount options (btrfs subvolume + utab) ---"
-$TS_CMD_FINDMNT --mtab $MOUNTPOINT -o OPTIONS -n >> $TS_OUTPUT 2>&1
-ts_log "---"
+
+# Don't temporary write btrfs mount options to the test output,
+# the options depend on kernel version (since 4.2 it contains
+# subvol= and subvolid=).
+#
+#ts_log "All mount options (btrfs subvolume + utab) ---"
+#$TS_CMD_FINDMNT --mtab $MOUNTPOINT -o OPTIONS -n >> $TS_OUTPUT 2>&1
+#ts_log "---"
 
 ts_init_subtest "umount-subvol"
 $PYTHON $TESTPROG --umount $MOUNTPOINT >> $TS_OUTPUT 2>&1