mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common/config: unset TEST_FS_MOUNT_OPTS across config sections
TEST_FS_MOUNT_OPTS doesn't get reset before parsing next config section, this will cause unexpected TEST_FS_MOUNT_OPTS in test, because it can be assigned some fs-specific mount options in _test_mount_opts, which might not be supported by the filesystem in next config section. And MOUNT_OPTIONS is reset, I don't see why TEST_FS_MOUNT_OPTS shouldn't be. Also update README.config-sections to reflect this change and fix typos (replace MOUNT_OPTIONS with TEST_FS_MOUNT_OPTS). Reviewed-by: Xiao Yang <yangx.jy@cn.fujitsu.com> Signed-off-by: Eryu Guan <eguan@redhat.com>
This commit is contained in:
@@ -602,6 +602,7 @@ get_next_config() {
|
||||
local OLD_USE_EXTERNAL=$USE_EXTERNAL
|
||||
|
||||
unset MOUNT_OPTIONS
|
||||
unset TEST_FS_MOUNT_OPTS
|
||||
unset MKFS_OPTIONS
|
||||
unset FSCK_OPTIONS
|
||||
unset USE_EXTERNAL
|
||||
|
||||
Reference in New Issue
Block a user