[LTP] [PATCH 3/3] zram: Increase timeout according to used devices
Petr Vorel
pvorel@suse.cz
Fri Mar 12 18:32:01 CET 2021
to avoid unexpected timeout, which occurred even on just 4 zram devices.
On my system where run with ext{2,3,4}, xfs, btrfs, vfat, exfat, ntfs
it run for 12 min, i.e. mean 90s. Multiply by security constant 5,
expecting 450 sec for each filesystem.
Reviewed-by: Li Wang <liwang@redhat.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
The same as previous
https://patchwork.ozlabs.org/project/ltp/patch/20210301220222.22705-8-pvorel@suse.cz/
testcases/kernel/device-drivers/zram/zram_lib.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/testcases/kernel/device-drivers/zram/zram_lib.sh b/testcases/kernel/device-drivers/zram/zram_lib.sh
index 65e431e86..fe9c915c3 100755
--- a/testcases/kernel/device-drivers/zram/zram_lib.sh
+++ b/testcases/kernel/device-drivers/zram/zram_lib.sh
@@ -47,6 +47,8 @@ zram_load()
tst_brk TBROK "dev_num must be > 0"
fi
+ tst_set_timeout $((dev_num*450))
+
tst_res TINFO "create '$dev_num' zram device(s)"
modprobe zram num_devices=$dev_num || \
--
2.30.1
More information about the ltp
mailing list