From 128c943ef2a0a82b8a4a8a9ca66f459e107bc877 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sat, 12 Oct 2013 22:25:29 -0400 Subject: [PATCH] tests: remove version number dependency in r_min_itable Signed-off-by: "Theodore Ts'o" --- tests/r_min_itable/expect | 2 +- tests/r_min_itable/script | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/r_min_itable/expect b/tests/r_min_itable/expect index 104688a1f..ddb5a377b 100644 --- a/tests/r_min_itable/expect +++ b/tests/r_min_itable/expect @@ -4,7 +4,7 @@ Resizing the filesystem on test.img to 1124 (1k) blocks. The filesystem on test.img is now 1124 blocks long. Exit status is 0 -e2fsck 1.42.8 (20-Jun-2013) +fsck -yf -N test_filesys test.img Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity diff --git a/tests/r_min_itable/script b/tests/r_min_itable/script index 00aaa60e3..281fd5a62 100644 --- a/tests/r_min_itable/script +++ b/tests/r_min_itable/script @@ -13,11 +13,13 @@ echo "resize2fs -M test.img" >> $OUT $RESIZE2FS -M $TMPFILE 2>&1 >> $OUT.new 2>&1 status=$? echo Exit status is $status >> $OUT.new -sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT -$FSCK $FSCK_OPT -N test_filesys $TMPFILE >> $OUT 2>&1 -echo Exit status is $status >> $OUT +echo " " +echo fsck $FSCK_OPT -N test_filesys test.img >> $OUT.new +$FSCK $FSCK_OPT -N test_filesys $TMPFILE >> $OUT.new 2>&1 +echo Exit status is $status >> $OUT.new +sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT rm $TMPFILE $OUT.new # -- 2.47.2