Whamcloud - gitweb
tests: fix tests that were always being skipped
authorTheodore Ts'o <tytso@mit.edu>
Sat, 27 Apr 2024 17:35:09 +0000 (13:35 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 27 Apr 2024 23:59:40 +0000 (19:59 -0400)
A broken OS check was causing a few tests that were supposed to be
skipped on MacOS, Hurd, and FreeBSD systems to be always skipped.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/m_hugefile/script
tests/r_64bit_big_expand/script
tests/r_bigalloc_big_expand/script
tests/r_ext4_big_expand/script
tests/r_move_itable_nostride/script

index fc1d115..3af4503 100644 (file)
@@ -4,7 +4,7 @@ EXP=$test_dir/expect
 CONF=$TMPFILE.conf
 
 os=$(uname -s)
 CONF=$TMPFILE.conf
 
 os=$(uname -s)
-if [ "$os" = "Darwin" -o "$os" = "GNU" -o "FreeBSD" ]; then
+if [ "$os" = "Darwin" -o "$os" = "GNU" -o "$os" = "FreeBSD" ]; then
        # creates a 44GB filesystem
        echo "$test_name: $test_description: skipped for $os"
        return 0
        # creates a 44GB filesystem
        echo "$test_name: $test_description: skipped for $os"
        return 0
index d1bf8cd..147cf9b 100644 (file)
@@ -11,7 +11,7 @@ LOG=$test_name.log
 E2FSCK=../e2fsck/e2fsck
 
 os=$(uname -s)
 E2FSCK=../e2fsck/e2fsck
 
 os=$(uname -s)
-if [ "$os" = "Darwin" -o "$os" = "GNU" -o "FreeBSD" ]; then
+if [ "$os" = "Darwin" -o "$os" = "GNU" -o "$os" = "FreeBSD" ]; then
        # creates a 2TB filesystem
        echo "$test_name: $test_description: skipped for $os"
        return 0
        # creates a 2TB filesystem
        echo "$test_name: $test_description: skipped for $os"
        return 0
index 101aafb..bd42178 100644 (file)
@@ -12,7 +12,7 @@ E2FSCK=../e2fsck/e2fsck
 RESIZE2FS_OPTS=-f
 
 os=$(uname -s)
 RESIZE2FS_OPTS=-f
 
 os=$(uname -s)
-if [ "$os" = "Darwin" -o "$os" = "GNU" -o "FreeBSD" ]; then
+if [ "$os" = "Darwin" -o "$os" = "GNU" -o "$os" = "FreeBSD" ]; then
        # creates a 2TB filesystem
        echo "$test_name: $test_description: skipped for $os"
        return 0
        # creates a 2TB filesystem
        echo "$test_name: $test_description: skipped for $os"
        return 0
index a49e4c3..4b0016c 100644 (file)
@@ -11,9 +11,9 @@ LOG=$test_name.log
 E2FSCK=../e2fsck/e2fsck
 
 os=$(uname -s)
 E2FSCK=../e2fsck/e2fsck
 
 os=$(uname -s)
-if [ "$os" = "Darwin" -o "$os" = "GNU" -o "FreeBSD" ]; then
+if [ "$os" = "Darwin" -o "$os" = "GNU" -o "$os" = "FreeBSD" ]; then
        # creates a 2TB filesystem
        # creates a 2TB filesystem
-       echo "$test_name: $test_description: skipped for FreeBSD"
+       echo "$test_name: $test_description: skipped for $os"
        return 0
 fi
 
        return 0
 fi
 
index d24df22..1246e1a 100644 (file)
@@ -1,5 +1,5 @@
 os=$(uname -s)
 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 for $os"
        return 0
        # creates a 96GB filesystem
        echo "$test_name: $test_description: skipped for $os"
        return 0