summaryrefslogtreecommitdiff
path: root/tests/ts/mount/devname
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ts/mount/devname')
-rwxr-xr-xtests/ts/mount/devname6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ts/mount/devname b/tests/ts/mount/devname
index 0448a4b3..4cbd0871 100755
--- a/tests/ts/mount/devname
+++ b/tests/ts/mount/devname
@@ -38,8 +38,14 @@ $TS_CMD_MOUNT $DEVICE $TS_MOUNTPOINT 2>&1 >> $TS_OUTPUT
ts_is_mounted $DEVICE || ts_die "Cannot found $DEVICE in /proc/mounts" $DEVICE
+grep -q $DEVICE /etc/mtab ||
+ echo "mount failed: cannot found $DEVICE in mtab" >> $TS_OUTPUT 2>&1
+
$TS_CMD_UMOUNT $DEVICE || ts_die "Cannot umount $DEVICE" $DEVICE
+grep -q $DEVICE /etc/mtab &&
+ echo "umount failed: found $DEVICE in mtab" >> $TS_OUTPUT 2>&1
+
ts_device_deinit $DEVICE
ts_log "Success"