[LTP] [PATCH v1] zram01.sh: Increase timeout for check_read_mem_used_total
Petr Vorel
pvorel@suse.cz
Thu Apr 18 16:22:02 CEST 2024
Hi all,
> Increase timeout value to let case pass on our low ppc64le
nit: s/low/low resource/
> machine.
> Signed-off-by: Wei Gao <wegao@suse.com>
> ---
> testcases/kernel/device-drivers/zram/zram01.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/testcases/kernel/device-drivers/zram/zram01.sh b/testcases/kernel/device-drivers/zram/zram01.sh
> index 0c100b706..959dab217 100755
> --- a/testcases/kernel/device-drivers/zram/zram01.sh
> +++ b/testcases/kernel/device-drivers/zram/zram01.sh
> @@ -155,7 +155,7 @@ zram_fill_fs()
> continue
> fi
> - TST_RETRY_FUNC "check_read_mem_used_total /sys/block/zram$i/mm_stat" 0
> + TST_RETRY_FN_EXP_BACKOFF "check_read_mem_used_total /sys/block/zram$i/mm_stat" 0 10
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Sounds ok for me to avoid timeout.
@Cyril, @Li WDYT? Or do you smell bug we try to cover?
Kind regards,
Petr
> mem_used_total=$(read_mem_used_total /sys/block/zram$i/mm_stat)
> tst_res TINFO "mem_used_total: $mem_used_total"
More information about the ltp
mailing list