diff options
author | Karel Zak | 2013-03-11 16:05:29 +0100 |
---|---|---|
committer | Karel Zak | 2013-03-11 16:05:29 +0100 |
commit | 23ce9df745fd33e87b3ac409f3845d2da297005d (patch) | |
tree | 984ef8b653586c598aa8bed5bc4f34b4134926bf /tests/ts/fdisk | |
parent | fdisk: (bsd) support non-nested version too (diff) | |
download | kernel-qcow2-util-linux-23ce9df745fd33e87b3ac409f3845d2da297005d.tar.gz kernel-qcow2-util-linux-23ce9df745fd33e87b3ac409f3845d2da297005d.tar.xz kernel-qcow2-util-linux-23ce9df745fd33e87b3ac409f3845d2da297005d.zip |
tests: update 'odd input' fdisk test
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/fdisk')
-rwxr-xr-x | tests/ts/fdisk/oddinput | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ts/fdisk/oddinput b/tests/ts/fdisk/oddinput index 799eca054..5b9bb3108 100755 --- a/tests/ts/fdisk/oddinput +++ b/tests/ts/fdisk/oddinput @@ -26,6 +26,10 @@ ts_log "Initialize empty image" TEST_IMAGE_NAME=$(ts_image_init 10) ts_image_md5sum >> $TS_OUTPUT 2>&1 +# +# Note that since 2.23 the DOS-mode has effect only if there is a MBR on the device. +# + ts_log "Empty image listing" # this should report empty partition table # TEST_IMAGE_NAME has absolute path, and is by definition different on each computer, we need to sed it away $TS_CMD_FDISK -c=dos -u=cylinders -l ${TEST_IMAGE_NAME} 2>&1 | sed -e "s/${TEST_IMAGE_NAME//\//\\/}/testimage/" >> $TS_OUTPUT |