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

Petr Vorel
2021-04-07T12:37:30Z

> 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?

Oops, thanks for noticing this.

Kind regards,
Petr

> > + kill -INT -$pid
> > + tst_sleep 100ms

> Other than that it looks good,

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