[LTP] [PATCH v1] zram01.sh: Increase timeout for check_read_mem_used_total

Petr Vorel pvorel@suse.cz
Tue May 7 08:41:09 CEST 2024


Hi all,
> Hi all,

> > Signed-off-by: Wei Gao <wegao@suse.com>
...
> > 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?

FYI merged. Thanks!

Kind regards,
Petr

> 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