check: source common/rc again if TEST_DEV was recreated
[xfstests-dev.git] / check
diff --git a/check b/check
index 83f6fc8bdf3ef24f6af0cd5b2570f5bd2ae030dc..c6ad1d6c07338d1da8e69c6326154a0a7da069bd 100755 (executable)
--- a/check
+++ b/check
@@ -630,6 +630,10 @@ function run_section()
                        status=1
                        exit
                fi
+               # TEST_DEV has been recreated, previous FSTYP derived from
+               # TEST_DEV could be changed, source common/rc again with
+               # correct FSTYP to get FSTYP specific configs, e.g. common/xfs
+               . common/rc
                _prepare_test_list
        elif [ "$OLD_TEST_FS_MOUNT_OPTS" != "$TEST_FS_MOUNT_OPTS" ]; then
                _test_unmount 2> /dev/null