shell_loader_filesystems: add tmpfs support to avoid fail in GitHub CI
PATCH 1/1 shell_loader_filesystems: add tmpfs support to avoid fail in GitHub CI
GitHub CI currently fails when running shell_loader_filesystems.sh because the Docker environment does not have support for XFS and Btrfs. This results in a TCONF failure, causing the CI job to fail:
* shell_loader_filesystems.sh (TCONF, exp: TPASS)
make: *** [Makefile:210: test-shell-loader] Error 1
To resolve this, we add tmpfs to the list of tested filesystems. Since tmpfs is always available in GitHub CI, this ensures that the test runs successfully even when XFS and Btrfs are unavailable.
CI: https://github.com/wangli5665/ltp/actions/runs/13992429178
--- testcases/lib/tests/shell_loader_filesystems.sh | 3 +++ 1 file changed, 3 insertions(+)
testcases/lib/tests/shell_loader_filesystems.sh +3 -0
@@ -9,6 +9,9 @@ # "mntpoint": "ltp_mntpoint", # "filesystems": [ # { +# "type": "tmpfs" +# }, +# { # "type": "btrfs" # }, # {
Signature · 5 lines
2.48.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp
FYI:
In the previous github CI, due to the lack of XFS/Btrfs support, shell_loader_filesystems.sh was not actually tested and resulted in a False Negative.
See:
https://github.com/linux-test-project/ltp/actions/runs/13968146513/job/39103228371
*** Running 'shell_loader_filesystems.sh' (exp: TPASS) *** /__w/ltp/ltp/lib/tst_tmpdir.c:316: TINFO: Using /tmp/LTP_shew1KAxt as tmpdir (overlayfs filesystem)
/__w/ltp/ltp/lib/tst_device.c:98: TINFO: Found free device 0 '/dev/loop0' /__w/ltp/ltp/lib/tst_test.c:1900: TINFO: LTP version: 20250130 /__w/ltp/ltp/lib/tst_test.c:1904: TINFO: Tested kernel: 6.8.0-1021-azure #25-Ubuntu SMP Wed Jan 15 20:45:09 UTC 2025 x86_64 /__w/ltp/ltp/lib/tst_kconfig.c:88: TINFO: Parsing kernel config '/boot/config-6.8.0-1021-azure' /__w/ltp/ltp/lib/tst_test.c:1722: TINFO: Overall timeout per run is 0h 00m 30s
/__w/ltp/ltp/lib/tst_supported_fs_types.c:97: TINFO: Kernel supports ext2 /__w/ltp/ltp/lib/tst_supported_fs_types.c:58: TINFO: mkfs.ext2 does not exist
/__w/ltp/ltp/lib/tst_supported_fs_types.c:97: TINFO: Kernel supports ext3 /__w/ltp/ltp/lib/tst_supported_fs_types.c:58: TINFO: mkfs.ext3 does not exist
/__w/ltp/ltp/lib/tst_supported_fs_types.c:97: TINFO: Kernel supports ext4 /__w/ltp/ltp/lib/tst_supported_fs_types.c:58: TINFO: mkfs.ext4 does not exist
/__w/ltp/ltp/lib/tst_supported_fs_types.c:97: TINFO: Kernel supports xfs /__w/ltp/ltp/lib/tst_supported_fs_types.c:58: TINFO: mkfs.xfs does not exist /__w/ltp/ltp/lib/tst_supported_fs_types.c:97: TINFO: Kernel supports btrfs /__w/ltp/ltp/lib/tst_supported_fs_types.c:58: TINFO: mkfs.btrfs does not exist
/__w/ltp/ltp/lib/tst_supported_fs_types.c:105: TINFO: Skipping bcachefs because of FUSE blacklist /__w/ltp/ltp/lib/tst_supported_fs_types.c:97: TINFO: Kernel supports vfat /__w/ltp/ltp/lib/tst_supported_fs_types.c:58: TINFO: mkfs.vfat does not exist
/__w/ltp/ltp/lib/tst_supported_fs_types.c:128: TINFO: Filesystem exfat is not supported
/__w/ltp/ltp/lib/tst_supported_fs_types.c:128: TINFO: Filesystem ntfs is not supported
/__w/ltp/ltp/lib/tst_supported_fs_types.c:97: TINFO: Kernel supports tmpfs /__w/ltp/ltp/lib/tst_supported_fs_types.c:49: TINFO: mkfs is not needed for tmpfs
Summary:
passed 0 failed 0 broken 0 skipped 0
warnings 0
Signature · 5 lines
Regards, Li Wang -- Mailing list info: https://lists.linux.it/listinfo/ltp
Patch merged to get rid of CI failures.
Signature · 5 lines
Regards, Li Wang -- Mailing list info: https://lists.linux.it/listinfo/ltp