tests: check for mtab

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2010-12-22 13:13:45 +01:00
parent 29be59e9f1
commit e46119a411
2 changed files with 7 additions and 1 deletions

View File

@ -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"

View File

@ -23,7 +23,7 @@ ts_init "$*"
ts_skip_nonroot
if [ ! -x "$TS_CMD_MTABLOCK" ]; then
ts_slip "not compiled"
ts_skip "not compiled"
fi
#