summaryrefslogtreecommitdiffstats
path: root/tests/ts/fdisk/oddinput
diff options
context:
space:
mode:
authorKarel Zak2010-06-16 11:04:39 +0200
committerKarel Zak2010-06-16 11:04:39 +0200
commit5c7cd9ab507a1f49da541711959aa0062cea2ad6 (patch)
treed1459ff3a9445db4dc96540e9fb1e08ad9998c0a /tests/ts/fdisk/oddinput
parentfdisk: extend -c and -u options to support old DOS stuff (diff)
downloadkernel-qcow2-util-linux-5c7cd9ab507a1f49da541711959aa0062cea2ad6.tar.gz
kernel-qcow2-util-linux-5c7cd9ab507a1f49da541711959aa0062cea2ad6.tar.xz
kernel-qcow2-util-linux-5c7cd9ab507a1f49da541711959aa0062cea2ad6.zip
tests: update fdisk tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/fdisk/oddinput')
-rwxr-xr-xtests/ts/fdisk/oddinput6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ts/fdisk/oddinput b/tests/ts/fdisk/oddinput
index 9d5c47628..ceb6102c7 100755
--- a/tests/ts/fdisk/oddinput
+++ b/tests/ts/fdisk/oddinput
@@ -28,12 +28,12 @@ ts_image_md5sum >> $TS_OUTPUT 2>&1
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 -l ${TEST_IMAGE_NAME} 2>&1 | sed -e "s/${TEST_IMAGE_NAME//\//\\/}/testimage/" >> $TS_OUTPUT
+$TS_CMD_FDISK -c=dos -u=cylinders -l ${TEST_IMAGE_NAME} 2>&1 | sed -e "s/${TEST_IMAGE_NAME//\//\\/}/testimage/" >> $TS_OUTPUT
ts_log "Nonexistant file" # this originally does absolutely nothing
-$TS_CMD_FDISK -l _a_file_that_does_not_exist_ >> $TS_OUTPUT 2>&1
+$TS_CMD_FDISK -c=dos -u=cylinders -l _a_file_that_does_not_exist_ >> $TS_OUTPUT 2>&1
ts_log "Too small file" # same here
-$TS_CMD_FDISK -l $TS_TOPDIR/expected/fdisk/oddinput.toosmall >> $TS_OUTPUT 2>&1
+$TS_CMD_FDISK -c=dos -u=cylinders -l $TS_TOPDIR/expected/fdisk/oddinput.toosmall >> $TS_OUTPUT 2>&1
ts_finalize