Skip to contentSkip to conversation

zram01.sh: Skip tmpfs

PATCH New Petr Vorel 2 participants 4 messages Apr 20, 2021

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH 1/1 zram01.sh: Skip tmpfs

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")
---
 testcases/kernel/device-drivers/zram/zram01.sh | 1 +
 1 file changed, 1 insertion(+)
testcases/kernel/device-drivers/zram/zram01.sh +1 -0
index 7de8b4b2a..ad9a9a2be 100755
@@ -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
Signature · 1 line
2.31.1
#1 lore raw

PATCH 1/1 zram01.sh: Skip tmpfs

Hi Petr,

This patch looks good.

I am now thinking, does that make sense to add FS skiplist to tst_test.sh just like we have done for C lib?

Signature · 2 lines
Regards,
Li Wang
author
#2 lore raw

PATCH 1/1 zram01.sh: Skip tmpfs

Hi Li,

Quoted 5 lines

Hi Petr,

This patch looks good.

Thanks a lot, I'll merge it shortly.

Quoted 2 lines

I am now thinking, does that make sense to add FS skiplist to tst_test.sh just like we have done for C lib?

Yes. I was planning to do that since it's needed by more tests. But I'll merge this to get it fixed now.
Feel free to work on that (just let me know if you do).

Kind regards,
Petr