Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH] lib: LTP_SINGLE_FS_TYPE fix fuse blacklist
@ 2025-05-21  9:53 Cyril Hrubis
  2025-05-22 16:14 ` Jan Polensky
  2025-05-22 17:31 ` Petr Vorel
  0 siblings, 2 replies; 7+ messages in thread
From: Cyril Hrubis @ 2025-05-21  9:53 UTC (permalink / raw)
  To: ltp

The case of LTP_SINGLE_FS_TYPE did not proplerly used the fuse
filesystem blacklist and we enabled fuse filesystem even for tests that
explicitly stated in the tst_test structure that they do not work with
fuse.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
CC: Jan Polensky <japo@linux.ibm.com>
---
 lib/tst_supported_fs_types.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/tst_supported_fs_types.c b/lib/tst_supported_fs_types.c
index bbbb8df19..3a394283c 100644
--- a/lib/tst_supported_fs_types.c
+++ b/lib/tst_supported_fs_types.c
@@ -158,8 +158,10 @@ const char **tst_get_supported_fs_types(const char *const *skiplist)
 	only_fs = getenv("LTP_SINGLE_FS_TYPE");
 
 	if (only_fs) {
+		enum tst_fs_impl ret;
 		tst_res(TINFO, "WARNING: testing only %s", only_fs);
-		if (tst_fs_is_supported(only_fs))
+		ret = tst_fs_is_supported(only_fs);
+		if (ret == TST_FS_KERNEL || (ret == TST_FS_FUSE && !skip_fuse))
 			fs_types[0] = only_fs;
 		return fs_types;
 	}
-- 
2.45.2


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-05-26 10:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-21  9:53 [LTP] [PATCH] lib: LTP_SINGLE_FS_TYPE fix fuse blacklist Cyril Hrubis
2025-05-22 16:14 ` Jan Polensky
2025-05-22 17:31 ` Petr Vorel
2025-05-22 17:47   ` Cyril Hrubis
2025-05-22 19:26     ` Petr Vorel
2025-05-22 19:57       ` Petr Vorel
2025-05-26 10:09         ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox