[LTP] [PATCH 1/2] lib: multiply the timeout if detect slow kconfigsD
Cyril Hrubis
chrubis@suse.cz
Tue Jan 7 13:42:18 CET 2025
Hi!
> Ah, you mean we multiply the overall test time limit results->timeout,
> right?
> e.g.
>
> results->timeout = (default_30s_timeout + tst_test->timeout) *
> TIMEOUT_MUL + tst_test->runtime * RUNTIME_MUL;
> if (tst_has_slow_kconfig())
> results->timeout *= 4;
That would work too, but since the runtime will be always constant (once
only the test that call tst_remaning_runtime() use runtime and the rest
of the tests is moved to timeout) we may as well multiply the timeout
part.
However this detail does not matter that much, the most imporatant part
is the clear separation of the guessed upper bound and the actual
runtime that is used to controll how long should the loop in the test
spin.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list