From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/3] tst_test.sh: Run cleanup also after test timeout
Date: Wed, 7 Apr 2021 14:37:30 +0200 [thread overview]
Message-ID: <YG2nigNt+dPZfMC5@pevik> (raw)
In-Reply-To: <YG2lVae3qLH8ZHRV@yuki>
> 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>
next prev parent reply other threads:[~2021-04-07 12:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-12 17:31 [LTP] [PATCH 0/3] shell test timeout handling Petr Vorel
2021-03-12 17:31 ` [LTP] [PATCH 1/3] tst_test.sh: Run cleanup also after test timeout Petr Vorel
2021-04-07 12:28 ` Cyril Hrubis
2021-04-07 12:37 ` Petr Vorel [this message]
2021-03-12 17:32 ` [LTP] [PATCH 2/3] test: Adding timeout03.sh for testing _tst_kill_test() Petr Vorel
2021-04-07 12:30 ` Cyril Hrubis
2021-04-07 17:57 ` Petr Vorel
2021-03-12 17:32 ` [LTP] [PATCH 3/3] zram: Increase timeout according to used devices Petr Vorel
2021-03-15 5:23 ` [LTP] [PATCH 0/3] shell test timeout handling Li Wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YG2nigNt+dPZfMC5@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox