[LTP] [PATCH 6/7] tst_test.sh: Run cleanup also after test timeout
    Petr Vorel 
    pvorel@suse.cz
       
    Tue Mar  2 11:20:26 CET 2021
    
    
  
Hi Li,
...
> >  _tst_cleanup_timer()
> >  {
> > @@ -442,6 +442,14 @@ _tst_multiply_timeout()
> >         return 0
> >  }
> > +_tst_run_timer()
> Hmm, this name is not good than before, or rename to _tst_kill_timer_pid(),
> _tst_stop_timer()?
Good point. I slightly prefer _tst_stop_timer, but no hard feeling about it.
Kind regards,
Petr
> > +{
> > +       tst_res TBROK "test killed, timeout! If you are running on slow
> > machine, try exporting LTP_TIMEOUT_MUL > 1"
> > +       kill -INT -$pid
> > +       sleep 5
> > +       kill -KILL -$pid
> > +}
> > +
    
    
More information about the ltp
mailing list