summaryrefslogtreecommitdiffstats
path: root/tests/ts/sfdisk
diff options
context:
space:
mode:
authorKarel Zak2014-10-09 13:21:04 +0200
committerKarel Zak2014-10-09 13:21:04 +0200
commit2f34f1c77f65dc254efe5e4a380302772397933d (patch)
tree24bf4805f64ebd65a183c274a00d08a3b372f3b8 /tests/ts/sfdisk
parentlibfdisk: cleanup script dump (diff)
downloadkernel-qcow2-util-linux-2f34f1c77f65dc254efe5e4a380302772397933d.tar.gz
kernel-qcow2-util-linux-2f34f1c77f65dc254efe5e4a380302772397933d.tar.xz
kernel-qcow2-util-linux-2f34f1c77f65dc254efe5e4a380302772397933d.zip
tests: update sfdisk tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/sfdisk')
-rwxr-xr-xtests/ts/sfdisk/dos15
1 files changed, 9 insertions, 6 deletions
diff --git a/tests/ts/sfdisk/dos b/tests/ts/sfdisk/dos
index 26126f058..e4ea981af 100755
--- a/tests/ts/sfdisk/dos
+++ b/tests/ts/sfdisk/dos
@@ -31,11 +31,11 @@ ts_scsi_debug_init dev_size_mb=50 sector_size=512 physblk_exp=3
ts_init_subtest "simple-commas"
$TS_CMD_SFDISK --unit S ${TS_DEVICE} >> $TS_OUTPUT 2>&1 <<EOF
-2048,6144,L
-8192,6144,S
-14336,6144,
+ 2048,6144,L
+8192, 6144,S
+14336 , 6144 ,
20480,,E
-,6144,
+,6144 ,
,,
EOF
ts_fdisk_clean $TS_DEVICE
@@ -53,9 +53,10 @@ ts_finalize_subtest
ts_init_subtest "simple-space"
$TS_CMD_WIPEFS -a ${TS_DEVICE} &> /dev/null
+udevadm settle
$TS_CMD_SFDISK --unit S ${TS_DEVICE} >> $TS_OUTPUT 2>&1 <<EOF
-2048,6144,L
-8192,6144,S
+ 2048 6144 L
+8192 6144 S
,,
EOF
ts_fdisk_clean $TS_DEVICE
@@ -65,8 +66,10 @@ ts_finalize_subtest
ts_init_subtest "read-dump"
$TS_CMD_WIPEFS -a ${TS_DEVICE} &> /dev/null
+udevadm settle
$TS_CMD_SFDISK --unit S ${TS_DEVICE} >> $TS_OUTPUT 2>&1 <<EOF
unit: sectors
+label-id: 0x1ddc8a79
${TS_DEVICE}1 : start= 2048, size= 6144, Id=83, bootable
${TS_DEVICE}2 : start= 8192, size= 6144, Id=82