Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
local result
local msg
local fs
+ local fs_exp=$1
+ shift
out=$($TS_CMD_MOUNT "$@" 2>&1)
result=$?
then
# skip only if reported fs correctly and if it's not available
fs=$(echo "$msg" | sed -n "s/.*type '\(.*\)'$/\1/p")
- [ -n "$fs" ] \
+ [ "$fs" = "fs_exp" ] \
&& grep -qe "[[:space:]]${fs}$" /proc/filesystems &>/dev/null \
|| ts_skip "$msg"
fi
[ -d "$TS_MOUNTPOINT" ] || mkdir -p $TS_MOUNTPOINT
ts_log "mount the filesystem"
-ts_mount $DEVICE $TS_MOUNTPOINT
+ts_mount "minix" $DEVICE $TS_MOUNTPOINT
# check it
ts_is_mounted $DEVICE || ts_die "Cannot find $DEVICE in /proc/mounts" $DEVICE