[LTP] [PATCH 1/3] tst_test.sh: Run cleanup also after test timeout

Cyril Hrubis
2021-04-07T12:28:05Z

Hi!
> _tst_cleanup_timer()
> {
> @@ -442,6 +442,26 @@ _tst_multiply_timeout()
> return 0
> }
>
> +_tst_kill_test()
> +{
> + local i=10
> +
> + tst_res TBROK "Test timeouted, sending SIGTERM! If you are running on slow machine, try exporting LTP_TIMEOUT_MUL > 1"
^
SIGINT?
> + kill -INT -$pid
> + tst_sleep 100ms

Other than that it looks good,

Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

--
Cyril Hrubis
chrubis@suse.cz