OSDN Git Service

tests: remove version number dependency in r_min_itable
authorTheodore Ts'o <tytso@mit.edu>
Sun, 13 Oct 2013 02:25:29 +0000 (22:25 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 13 Oct 2013 02:25:29 +0000 (22:25 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
tests/r_min_itable/expect
tests/r_min_itable/script

index 104688a..ddb5a37 100644 (file)
@@ -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
index 00aaa60..281fd5a 100644 (file)
@@ -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
 
 #