summaryrefslogtreecommitdiffstats
path: root/tests/ts/losetup/losetup
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ts/losetup/losetup')
-rwxr-xr-xtests/ts/losetup/losetup8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ts/losetup/losetup b/tests/ts/losetup/losetup
index 1fec0dd06..42eb1d78c 100755
--- a/tests/ts/losetup/losetup
+++ b/tests/ts/losetup/losetup
@@ -69,6 +69,14 @@ lo_print $LODEV >> $TS_OUTPUT
$TS_CMD_LOSETUP -d $LODEV
ts_finalize_subtest
+ts_init_subtest "file-type"
+LODEV=$( $TS_CMD_LOSETUP --type RAW --find --show $BACKFILE )
+if [ -z "$LODEV" ]; then
+ ts_log "Failed to create loop device"
+fi
+lo_print $LODEV >> $TS_OUTPUT
+$TS_CMD_LOSETUP -d $LODEV
+ts_finalize_subtest
ts_init_subtest "file-section"
LODEV=$( $TS_CMD_LOSETUP --offset 1MiB --sizelimit 3MiB --find --show $BACKFILE )