From: Aneesh Kumar K.V Date: Mon, 13 Aug 2007 10:26:25 +0000 (+0530) Subject: Fix the resize inode test case X-Git-Tag: v1.41-WIP-0427~1^2~1 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=91803d88794be695da904acf46415b5a34f72f1e;p=tools%2Fe2fsprogs.git Fix the resize inode test case With the new mke2fs changes the output of the command differs if we run mke2fs on a device that already have the file system. So erase the file system before running mke2fs so that output remain as expected. Signed-off-by: Aneesh Kumar K.V Signed-off-by: "Theodore Ts'o" --- diff --git a/tests/r_resize_inode/script b/tests/r_resize_inode/script index 5820fbe..aced9c4 100644 --- a/tests/r_resize_inode/script +++ b/tests/r_resize_inode/script @@ -37,6 +37,8 @@ $DUMPE2FS $TMPFILE 2>&1 | sed -f $cmd_dir/filter_dumpe2fs >> $OUT echo "--------------------------------" >> $OUT +dd if=/dev/zero of=$TMPFILE bs=1k count=512 > /dev/null 2>&1 + echo mke2fs -q -F -O resize_inode -o Linux -b 1024 -g 1024 test.img 65536 >> $OUT $MKE2FS -q -F -O resize_inode -o Linux -b 1024 -g 1024 $TMPFILE 65536 2>&1 \ | sed -e '1d' | grep -v "automatically checked" |