diff options
author | Karel Zak | 2007-10-26 00:55:36 +0200 |
---|---|---|
committer | Karel Zak | 2007-10-26 01:02:45 +0200 |
commit | 32f7216b4c480e140a035c92319e527120d26616 (patch) | |
tree | a431a1f5a775aac0557fa4c6d331e9d12dba572d /tests/ts-cramfs-mkfs | |
parent | tailf: opened file leaving unclosed (diff) | |
download | kernel-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-x | tests/ts-cramfs-mkfs | 4 |
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 |