Whamcloud - gitweb
tests: fix r_move_itable_realloc to run on Linux
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 9 Jan 2023 21:27:42 +0000 (14:27 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 9 Jan 2023 21:37:27 +0000 (14:37 -0700)
The check for the various unsupported OSes incorrectly checked if
the string "FreeBSD" was true, which it always was.  Fix this.

Update the expect file as commit v1.46.4-17-g4ea80d031c7e did to
adjust the total number of blocks requested during resize.

Fixes: 5a3ea3905f ("tests: force test file systems to be built for Linux OS")
Change-Id: I4fbc74861bc68ad36467b2135e2abdb72898529b
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
tests/r_move_itable_realloc/expect
tests/r_move_itable_realloc/script

index 67f2fe4..8ce56db 100644 (file)
@@ -1,6 +1,6 @@
 mke2fs -q -F -o Linux -b 1024 -i 1024 -O ^resize_inode -t ext4 test.img 1024000
 resize2fs -p test.img 100000000
-Resizing the filesystem on test.img to 100000000 (1k) blocks.
+Resizing the filesystem on test.img to 99999745 (1k) blocks.
 Begin pass 2 (max = 2061)
 Relocating blocks             ----------------------------------------\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 Begin pass 3 (max = 125)
index 20c26db..49f8d58 100644 (file)
@@ -1,5 +1,5 @@
 os=$(uname -s)
-if [ "$os" = "Darwin" -o "$os" = "GNU" -o "FreeBSD" ]; then
+if [ "$os" = "Darwin" -o "$os" = "GNU" -o "$os" = "FreeBSD" ]; then
        # creates a 96GB filesystem
        echo "$test_name: $test_description: skipped: skipped for $os"
        return 0