[PATCH 2/4] tests: make t3000-resize-fat.sh pass
Curtis Gedak
gedakc at gmail.com
Thu Sep 24 20:56:40 UTC 2009
* tests/t3000-resize-fat.sh: Adjust starting partition offset
to be on a cylinder boundary, and increase the partition size
to be larger than 256 MiB. When resizing, choose the new size
to be exactly one cylinder (8MiB) larger than the original.
---
tests/t3000-resize-fat.sh | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/t3000-resize-fat.sh b/tests/t3000-resize-fat.sh
index 496e15f..df8ae43 100755
--- a/tests/t3000-resize-fat.sh
+++ b/tests/t3000-resize-fat.sh
@@ -31,8 +31,8 @@ test_expect_success \
test_expect_success 'expect no output' 'compare out /dev/null'
test_expect_success \
- 'create an empty FAT partition' \
- 'parted -s $dev mkpart primary fat32 50s 70000s > out 2>&1'
+ 'create an empty FAT partition, cylinder aligned and of size > 256 MB' \
+ 'parted -s $dev mkpart primary fat32 63s 530144s > out 2>&1'
test_expect_success 'expect no output' 'compare out /dev/null'
test_expect_success \
@@ -56,8 +56,8 @@ test_expect_success \
'mkfs.vfat -F 32 ${dev}1'
test_expect_success \
- 'resize that file system' \
- 'parted -s $dev resize 1 50s 71000s'
+ 'resize that file system to be one cylinder (8MiB) larger' \
+ 'parted -s $dev resize 1 63s 546147s'
test_expect_success \
'print partition table' \
--
1.6.5.rc2.177.ga9dd6
More information about the parted-devel
mailing list