diff options
author | Theodore Ts'o <tytso@mit.edu> | 2018-06-26 09:59:19 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-06-26 09:59:19 -0400 |
commit | 74430052bc5b3fffff3330f054849ca829fe24dc (patch) | |
tree | b2154fee03209bd09da190c3549305d5b5b77a5c /tests/r_move_itable_realloc | |
parent | 47e61052643ae91847d72e074a706a6ec55411cc (diff) | |
download | e2fsprogs-74430052bc5b3fffff3330f054849ca829fe24dc.tar.gz |
tests: explicitly force resize2fs's use of lazy (or not)
Resize2fs will not enable lazy_itable if the kernel apparently does
not support that feature. This will cause spurious test failures when
the tests are running on such a system (or where sysfs is not
mounted).
So for the purposes of the regression test we need to force the use of
lazy_itable so that the results conform to expected golden output.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tests/r_move_itable_realloc')
-rw-r--r-- | tests/r_move_itable_realloc/expect | 2 | ||||
-rw-r--r-- | tests/r_move_itable_realloc/script | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/r_move_itable_realloc/expect b/tests/r_move_itable_realloc/expect index 73b2fef0..f9a7f515 100644 --- a/tests/r_move_itable_realloc/expect +++ b/tests/r_move_itable_realloc/expect @@ -1,5 +1,5 @@ mke2fs -q -F -o Linux -b 1024 -i 1024 -O ^resize_inode -t ext4 test.img 1024000 -resize2fs -p test.img 10240000 +resize2fs -p test.img 100000000 Resizing the filesystem on test.img to 100000000 (1k) blocks. Begin pass 2 (max = 2061) Relocating blocks ----------------------------------------XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX diff --git a/tests/r_move_itable_realloc/script b/tests/r_move_itable_realloc/script index edc1303a..ae875e4a 100644 --- a/tests/r_move_itable_realloc/script +++ b/tests/r_move_itable_realloc/script @@ -30,7 +30,7 @@ echo mke2fs -q -F -o Linux -b 1024 -i 1024 -O ^resize_inode -t ext4 test.img 102 $MKE2FS -q -F -o Linux -b 1024 -i 1024 -O ^resize_inode -t ext4 \ $TMPFILE 1024000 >> $OUT 2>&1 -echo resize2fs -p test.img 10240000 >> $OUT +echo resize2fs -p test.img 100000000 >> $OUT $RESIZE2FS -p $TMPFILE 100000000 >> $OUT 2>&1 $FSCK $FSCK_OPT -N test_filesys $TMPFILE >> $OUT 2>&1 |