summaryrefslogtreecommitdiffstats
path: root/tests/ts/mount
diff options
context:
space:
mode:
authorKarel Zak2017-12-19 13:46:35 +0100
committerKarel Zak2017-12-19 13:51:12 +0100
commit03700127a7254e61e34ecc24e0bca8c23de4bc02 (patch)
tree9c4e52924db6f052b42be973889701fd242d2aa8 /tests/ts/mount
parentbuild-sys: don't check for swapon() number of arguments (diff)
downloadkernel-qcow2-util-linux-03700127a7254e61e34ecc24e0bca8c23de4bc02.tar.gz
kernel-qcow2-util-linux-03700127a7254e61e34ecc24e0bca8c23de4bc02.tar.xz
kernel-qcow2-util-linux-03700127a7254e61e34ecc24e0bca8c23de4bc02.zip
tests: don't use mount.<type> helpers in mount-by-pattern tests
The test behavior is fragile if depends on external helpers. Let's keep it based on mount(2) only. The test will be faster too. Note that "mount -t <pattern>" does not behaviour as expected with helpers. We need to try another helper if the current one ends with status=1 (waitpid()). Now it returns status from the first helper. Reported-by: Ruediger Meier <sweet_f_a@gmx.de> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/mount')
-rwxr-xr-xtests/ts/mount/fslists4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ts/mount/fslists b/tests/ts/mount/fslists
index 64859ba38..de485319a 100755
--- a/tests/ts/mount/fslists
+++ b/tests/ts/mount/fslists
@@ -71,7 +71,7 @@ ts_finalize_subtest
ts_init_subtest "type-pattern"
[ -d "$TS_MOUNTPOINT" ] || mkdir -p $TS_MOUNTPOINT
-$TS_CMD_MOUNT -t nofoo,bar $DEVICE $TS_MOUNTPOINT >> $TS_OUTPUT 2>&1
+$TS_CMD_MOUNT -i -t nofoo,bar $DEVICE $TS_MOUNTPOINT >> $TS_OUTPUT 2>&1
ts_is_mounted $DEVICE || ts_die "Cannot find $DEVICE in /proc/mounts"
$TS_CMD_UMOUNT $TS_MOUNTPOINT
ts_log "Success"
@@ -80,7 +80,7 @@ ts_finalize_subtest
ts_init_subtest "type-pattern-neg"
[ -d "$TS_MOUNTPOINT" ] || mkdir -p $TS_MOUNTPOINT
-$TS_CMD_MOUNT -t nofoo,bar,ext3,ext2,ext4 $DEVICE $TS_MOUNTPOINT &> /dev/null
+$TS_CMD_MOUNT -i -t nofoo,bar,ext3,ext2,ext4 $DEVICE $TS_MOUNTPOINT &> /dev/null
ts_is_mounted $DEVICE && ts_die "$DEVICE unexpectedly mounted"
ts_log "Success"
ts_finalize_subtest