From: Karel Zak Date: Fri, 2 Mar 2012 14:59:10 +0000 (+0100) Subject: tests: search for "none" by findmnt X-Git-Tag: v2.22-rc1~719 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9c2b9c5ee2113efc3ff309b000542d386c58c6f;p=thirdparty%2Futil-linux.git tests: search for "none" by findmnt Signed-off-by: Karel Zak --- diff --git a/tests/ts/mount/fstab-none b/tests/ts/mount/fstab-none index 7b254f94b9..62a89ca445 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