diff options
author | Karel Zak | 2012-03-02 15:59:10 +0100 |
---|---|---|
committer | Karel Zak | 2012-03-02 15:59:10 +0100 |
commit | e9c2b9c5ee2113efc3ff309b000542d386c58c6f (patch) | |
tree | 7aa73a5f7d0b5872467bf23980080a1926262cbb /tests | |
parent | libmount: add mnt_fs_streq_target() and export all mnt_fs_streq_* (diff) | |
download | kernel-qcow2-util-linux-e9c2b9c5ee2113efc3ff309b000542d386c58c6f.tar.gz kernel-qcow2-util-linux-e9c2b9c5ee2113efc3ff309b000542d386c58c6f.tar.xz kernel-qcow2-util-linux-e9c2b9c5ee2113efc3ff309b000542d386c58c6f.zip |
tests: search for "none" by findmnt
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/ts/mount/fstab-none | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/ts/mount/fstab-none b/tests/ts/mount/fstab-none index 7b254f94b..62a89ca44 100755 --- a/tests/ts/mount/fstab-none +++ b/tests/ts/mount/fstab-none @@ -14,8 +14,13 @@ ts_fstab_add "none" "$TS_MOUNTPOINT" "tmpfs" "rw,nosuid,nodev,relatime" mkdir -p $TS_MOUNTPOINT $TS_CMD_MOUNT $TS_MOUNTPOINT 2>&1 >> $TS_OUTPUT -findmnt --target "$TS_MOUNTPOINT" &> /dev/null -[ $? -eq 0 ] || ts_die "Mount $TS_MOUNTPOINT failed" + +$TS_CMD_FINDMNT --target "$TS_MOUNTPOINT" &> /dev/null +[ $? -eq 0 ] || ts_die "Not found target (mount failed?)" + +$TS_CMD_FINDMNT --source "none" --target "$TS_MOUNTPOINT" &> /dev/null +[ $? -eq 0 ] || ts_die "Not found source and target" + $TS_CMD_UMOUNT $TS_MOUNTPOINT || ts_die "Cannot umount $TS_MOUNTPOINT" ts_fstab_clean |