]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: search for "none" by findmnt
authorKarel Zak <kzak@redhat.com>
Fri, 2 Mar 2012 14:59:10 +0000 (15:59 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 2 Mar 2012 14:59:10 +0000 (15:59 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/mount/fstab-none

index 7b254f94b995bd551197575d565b9ea0872e2b51..62a89ca4456ec4762e17add83170403bdacec376 100755 (executable)
@@ -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