]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: use ts_mount for cramfs
authorRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 15 May 2014 15:01:00 +0000 (17:01 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Fri, 16 May 2014 10:07:36 +0000 (12:07 +0200)
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
tests/ts/cramfs/doubles
tests/ts/cramfs/mkfs

index 7393fc7dcd559deb00d5849e8a6ace824568b6e3..43fc60330eadfbc76aaa80a041d61fb645b07c90 100755 (executable)
@@ -46,7 +46,7 @@ ts_log "create cramfs image"
 $TS_CMD_MKCRAMFS $IMAGE_SRC $IMAGE_PATH 2>&1 >> $TS_OUTPUT
 [ -s "$IMAGE_PATH" ] || ts_die "Cannot create $IMAGE_PATH"
 
-$TS_CMD_MOUNT -r $IMAGE_PATH $TS_MOUNTPOINT 2>&1 >> $TS_OUTPUT
+ts_mount "cramfs" -r $IMAGE_PATH $TS_MOUNTPOINT
 
 # check it
 ts_is_mounted $TS_MOUNTPOINT || ts_die "Cannot find $TS_MOUNTPOINT in /proc/mounts"
index 70c82759106586201da70927aadd2c2f2c3a8220..06cdfbd32cacae6d162a0f474d18a4ba1f6daeeb 100755 (executable)
@@ -77,7 +77,7 @@ ts_device_has "TYPE" "cramfs" $DEVICE
 [  "$?" == "0" ] || ts_die "Cannot find cramfs on $DEVICE" $DEVICE
 
 ts_log "mount the image"
-$TS_CMD_MOUNT -r -L $LABEL $TS_MOUNTPOINT 2>&1 >> $TS_OUTPUT
+ts_mount "cramfs" -r -L $LABEL $TS_MOUNTPOINT
 
 # check it
 ts_is_mounted $DEVICE || ts_die "Cannot find $DEVICE in /proc/mounts" $DEVICE