[LTP] [PATCH 04/10] ioctl_sg01: Set unlimited max_runtime
Martin Doucha
mdoucha@suse.cz
Tue Aug 30 17:23:22 CEST 2022
On 30. 08. 22 17:16, Cyril Hrubis wrote:
> Hi!
>> Test setup can take very long time depending on the amount of free RAM.
>> Set unlimited max_runtime to avoid timeout issues.
>
> I would rather go for large enough number e.g. 30 minutes than
> unlimited as the unlimited runtime turns off the timeouts and such test
> can run undefinitely.
Even setting max_runtime is an ugly hack here because the test itself is
nearly instant. The setup() function is what actually times out. But
there's currently no way to change the default 30 second timeout
allocated for setup() and cleanup(). It'd be much better if I could set
that setup() has unlimited timeout and the test itself is limited to 5
seconds.
--
Martin Doucha mdoucha@suse.cz
QA Engineer for Software Maintenance
SUSE LINUX, s.r.o.
CORSO IIa
Krizikova 148/34
186 00 Prague 8
Czech Republic
More information about the ltp
mailing list