summaryrefslogtreecommitdiffstats
path: root/tests/ts-cramfs-mkfs
diff options
context:
space:
mode:
authorKarel Zak2007-10-26 00:55:36 +0200
committerKarel Zak2007-10-26 01:02:45 +0200
commit32f7216b4c480e140a035c92319e527120d26616 (patch)
treea431a1f5a775aac0557fa4c6d331e9d12dba572d /tests/ts-cramfs-mkfs
parenttailf: opened file leaving unclosed (diff)
downloadkernel-qcow2-util-linux-32f7216b4c480e140a035c92319e527120d26616.tar.gz
kernel-qcow2-util-linux-32f7216b4c480e140a035c92319e527120d26616.tar.xz
kernel-qcow2-util-linux-32f7216b4c480e140a035c92319e527120d26616.zip
tests: use losetup -s
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts-cramfs-mkfs')
-rwxr-xr-xtests/ts-cramfs-mkfs4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/ts-cramfs-mkfs b/tests/ts-cramfs-mkfs
index 4185184cf..d22896763 100755
--- a/tests/ts-cramfs-mkfs
+++ b/tests/ts-cramfs-mkfs
@@ -28,7 +28,6 @@ set -o pipefail
IMAGE="$TS_OUTDIR/cramfs-loop.img"
IMAGE_DATA="$TS_OUTDIR/cramfs-data"
-IMAGE_RE=$( echo $IMAGE | sed 's:/:\\/:g' )
LABEL="testCramfs"
TS_MOUNTPOINT="$TS_OUTDIR/cramfs-mnt"
@@ -63,8 +62,7 @@ echo >> $TS_OUTPUT
ts_log "create loop device from image"
ts_backup_cache
-DEVICE=$( $TS_CMD_LOSETUP -f )
-$TS_CMD_LOSETUP $DEVICE $IMAGE 2>&1 >> $TS_OUTPUT
+DEVICE=$( $TS_CMD_LOSETUP -s -f $IMAGE)
ts_log "check the image"
ts_device_has "TYPE" "cramfs" $DEVICE