From: Nirjhar Roy (IBM) Date: Wed, 9 Apr 2025 07:00:49 +0000 (+0000) Subject: check: Remove redundant _test_mount in check X-Git-Tag: v2025.04.13~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=491eddb2699f06a165b190be735a4b86fa06041b;p=xfstests-dev.git check: Remove redundant _test_mount in check init_rc already does a _test_mount. Hence removing the additional _test_mount call when OLD_TEST_FS_MOUNT_OPTS != TEST_FS_MOUNT_OPTS. Signed-off-by: Nirjhar Roy (IBM) Reviewed-by: Dave Chinner Reviewed-by: Ritesh Harjani (IBM) Reviewed-by: Darrick J. Wong Signed-off-by: Zorro Lang --- diff --git a/check b/check index 32890470..3d621210 100755 --- a/check +++ b/check @@ -791,13 +791,9 @@ function run_section() . common/rc _prepare_test_list elif [ "$OLD_TEST_FS_MOUNT_OPTS" != "$TEST_FS_MOUNT_OPTS" ]; then + # Unmount TEST_DEV to apply the updated mount options. + # It will be mounted again by init_rc(), called shortly after. _test_unmount 2> /dev/null - if ! _test_mount - then - echo "check: failed to mount $TEST_DEV on $TEST_DIR" - status=1 - exit - fi fi init_rc