Linux Test Project
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] zram01.sh: Skip tmpfs
@ 2021-04-20  6:17 Petr Vorel
  2021-04-20  8:01 ` Li Wang
  0 siblings, 1 reply; 4+ messages in thread
From: Petr Vorel @ 2021-04-20  6:17 UTC (permalink / raw)
  To: ltp

This fixes error: mkfs.tmpfs: command not found

It does not make much sense to adapt test to tmpfs, thus skip it.

Fixes: 012fac904 ("zram: Move test specific functions out of zram_lib.sh")

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 testcases/kernel/device-drivers/zram/zram01.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/device-drivers/zram/zram01.sh b/testcases/kernel/device-drivers/zram/zram01.sh
index 7de8b4b2a..ad9a9a2be 100755
--- a/testcases/kernel/device-drivers/zram/zram01.sh
+++ b/testcases/kernel/device-drivers/zram/zram01.sh
@@ -40,6 +40,7 @@ initialize_vars()
 	dev_num=0
 
 	for fs in $(tst_supported_fs); do
+		[ "$fs" = "tmpfs" ] && continue
 		size="26214400"
 		limit="25M"
 		if [ "$fs" = "btrfs" ]; then
-- 
2.31.1


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

end of thread, other threads:[~2021-04-20  8:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-20  6:17 [LTP] [PATCH 1/1] zram01.sh: Skip tmpfs Petr Vorel
2021-04-20  8:01 ` Li Wang
2021-04-20  8:20   ` Petr Vorel
2021-04-20  8:24   ` Petr Vorel

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