All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] Skip tmpfs in all-filesystem shell tests
@ 2021-05-13 13:49 Martin Doucha
  2021-05-13 13:50 ` Cyril Hrubis
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Doucha @ 2021-05-13 13:49 UTC (permalink / raw)
  To: ltp

All-filesystem shell tests like LVM currently don't support tmpfs. Remove it
from tst_supported_fs helper output for now.

Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
 testcases/lib/tst_supported_fs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testcases/lib/tst_supported_fs.c b/testcases/lib/tst_supported_fs.c
index 154b12ece..43eac194f 100644
--- a/testcases/lib/tst_supported_fs.c
+++ b/testcases/lib/tst_supported_fs.c
@@ -22,6 +22,7 @@ static void usage(void)
 
 int main(int argc, char *argv[])
 {
+	const char *skiplist[] = {"tmpfs", NULL};
 	const char *const *filesystems;
 	int i;
 
@@ -39,7 +40,7 @@ int main(int argc, char *argv[])
 	if (argv[1])
 		return !tst_fs_is_supported(argv[1]);
 
-	filesystems = tst_get_supported_fs_types(NULL);
+	filesystems = tst_get_supported_fs_types(skiplist);
 	for (i = 0; filesystems[i]; i++)
 		printf("%s\n", filesystems[i]);
 
-- 
2.31.1


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

* [LTP] [PATCH] Skip tmpfs in all-filesystem shell tests
  2021-05-13 13:49 [LTP] [PATCH] Skip tmpfs in all-filesystem shell tests Martin Doucha
@ 2021-05-13 13:50 ` Cyril Hrubis
  2021-05-13 16:00   ` Petr Vorel
  0 siblings, 1 reply; 4+ messages in thread
From: Cyril Hrubis @ 2021-05-13 13:50 UTC (permalink / raw)
  To: ltp

Hi!
> All-filesystem shell tests like LVM currently don't support tmpfs. Remove it
> from tst_supported_fs helper output for now.

git grep shows that we use that in zram01.sh and *_lvm.sh scripts, in
both cases tmpfs does not make any sense...

Looks good for the release:

Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

-- 
Cyril Hrubis
chrubis@suse.cz

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

* [LTP] [PATCH] Skip tmpfs in all-filesystem shell tests
  2021-05-13 13:50 ` Cyril Hrubis
@ 2021-05-13 16:00   ` Petr Vorel
  2021-05-14  8:12     ` Cyril Hrubis
  0 siblings, 1 reply; 4+ messages in thread
From: Petr Vorel @ 2021-05-13 16:00 UTC (permalink / raw)
  To: ltp

Hi Martin, Cyril

> Hi!
> > All-filesystem shell tests like LVM currently don't support tmpfs. Remove it
> > from tst_supported_fs helper output for now.

> git grep shows that we use that in zram01.sh and *_lvm.sh scripts, in
> both cases tmpfs does not make any sense...

> Looks good for the release:

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Good point, thanks! I also think it's good for a release. But in the future I'd
like to take single NFS test and run it in all filesystems. Currently there is
ongoing work to fix tmpfs on NFS. So we might need to move this skip in the
future to respected tests (zram01.sh and *_lvm.sh). And for that we will have
to implement skip filesystem for shell (or just skip it "manually").

Kind regards,
Petr

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

* [LTP] [PATCH] Skip tmpfs in all-filesystem shell tests
  2021-05-13 16:00   ` Petr Vorel
@ 2021-05-14  8:12     ` Cyril Hrubis
  0 siblings, 0 replies; 4+ messages in thread
From: Cyril Hrubis @ 2021-05-14  8:12 UTC (permalink / raw)
  To: ltp

Hi!
> Good point, thanks! I also think it's good for a release. But in the future I'd
> like to take single NFS test and run it in all filesystems. Currently there is
> ongoing work to fix tmpfs on NFS. So we might need to move this skip in the
> future to respected tests (zram01.sh and *_lvm.sh). And for that we will have
> to implement skip filesystem for shell (or just skip it "manually").

Sure, we should implement a proper skiplist later on once it's needed.

Pushed, thanks.

-- 
Cyril Hrubis
chrubis@suse.cz

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

end of thread, other threads:[~2021-05-14  8:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-13 13:49 [LTP] [PATCH] Skip tmpfs in all-filesystem shell tests Martin Doucha
2021-05-13 13:50 ` Cyril Hrubis
2021-05-13 16:00   ` Petr Vorel
2021-05-14  8:12     ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.