]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
xfs/032: fix test failure on kernels which don't support bs > ps
authorTheodore Ts'o <tytso@mit.edu>
Mon, 20 Jan 2025 17:01:09 +0000 (12:01 -0500)
committerZorro Lang <zlang@kernel.org>
Sat, 1 Feb 2025 06:04:02 +0000 (14:04 +0800)
When trying to mount a file system with a block size > page size on
kernel which doesn't support this, suppress the error messages from
showing up in the output file lest it cause test failures.

Fixes: 0b66f6efd669 ("xfs/032: try running on blocksize > pagesize filesystems")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/032

index 41a9134d8955075128fec5723c096e9031eabb0f..675881d5bb0361209c92827fb398f4286efdf304 100755 (executable)
@@ -44,7 +44,7 @@ for ((; SECTORSIZE <= 65536; SECTORSIZE *= 2)); do
                if [ $? -ne 0 ]; then
                        continue
                fi
-               if ! _try_scratch_mount; then
+               if ! _try_scratch_mount >> $seqres.full 2>&1 ; then
                        if [ $BLOCKSIZE -le $PAGESIZE ]; then
                                _fail "mount $(_scratch_mount_options $*) failed"
                        fi