commit 12787ba48c78fdc4ad0a6e1bfd3a65e1edc6bf24
tree 396523c3256745b4a0e6f7741197a52d39c5ef68
parent 78d6e4babc847b8cab7b69708965cd5fde23b92d
author Petr Vorel <pvorel@suse.cz> 2025-02-25 12:44:18 +0100
committer Petr Vorel <pvorel@suse.cz> 2026-01-05 15:29:01 +0100

    tst_supported_fs_types: Ignore empty $LTP_SINGLE_FS_TYPE value
    
    Previously empty $LTP_SINGLE_FS_TYPE value caused no testing:
    
        # LTP_SINGLE_FS_TYPE= ./getdents02
        ...
        LTP_SINGLE_VARIANT= LTP_SINGLE_FS_TYPE= ./getdents02
        tst_kconfig.c:88: TINFO: Parsing kernel config '/boot/config-6.12.10-amd64'
        tst_test.c:1722: TINFO: Overall timeout per run is 0h 00m 30s
        tst_supported_fs_types.c:161: TINFO: WARNING: testing only
        tst_supported_fs_types.c:128: TINFO: Filesystem  is not supported
        tst_test.c:1861: TCONF: There are no supported filesystems
    
    Now value is ignored:
    
        # LTP_SINGLE_FS_TYPE= ./getdents02
        ...
        tst_supported_fs_types.c:97: TINFO: Kernel supports ext2
        tst_supported_fs_types.c:62: TINFO: mkfs.ext2 does exist
        tst_supported_fs_types.c:97: TINFO: Kernel supports ext3
        tst_supported_fs_types.c:62: TINFO: mkfs.ext3 does exist
        tst_supported_fs_types.c:97: TINFO: Kernel supports ext4
        tst_supported_fs_types.c:62: TINFO: mkfs.ext4 does exist
        tst_supported_fs_types.c:97: TINFO: Kernel supports xfs
        tst_supported_fs_types.c:62: TINFO: mkfs.xfs does exist
        tst_supported_fs_types.c:97: TINFO: Kernel supports btrfs
        tst_supported_fs_types.c:62: TINFO: mkfs.btrfs does exist
        tst_supported_fs_types.c:97: TINFO: Kernel supports bcachefs
        tst_supported_fs_types.c:62: TINFO: mkfs.bcachefs does exist
        tst_supported_fs_types.c:97: TINFO: Kernel supports vfat
        tst_supported_fs_types.c:62: TINFO: mkfs.vfat does exist
        tst_supported_fs_types.c:97: TINFO: Kernel supports exfat
        tst_supported_fs_types.c:62: TINFO: mkfs.exfat does exist
        tst_supported_fs_types.c:132: TINFO: FUSE does support ntfs
        tst_supported_fs_types.c:62: TINFO: mkfs.ntfs does exist
        tst_supported_fs_types.c:97: TINFO: Kernel supports tmpfs
        tst_supported_fs_types.c:49: TINFO: mkfs is not needed for tmpfs
        tst_test.c:1834: TINFO: === Testing on ext2 ===
    
    Fixes: 1199657e91 ("lib: Add support for debugging .all_filesystems")
    Link: https://lore.kernel.org/ltp/20250225114418.2940134-2-pvorel@suse.cz/
    Reviewed-by: Andrea Cervesato <andrea.cervesato@suse.com>
    Signed-off-by: Petr Vorel <pvorel@suse.cz>


:100644 100644 bbd5a5fb4dc282a2fb1f74dccc4f7a828af2c45e 0c8c8dc507d4b33f1e6f0d14ec0c01f7c437014e M	lib/tst_supported_fs_types.c
