From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v4 1/2] net: Add tst_net_run helper
Date: Mon, 19 Nov 2018 18:38:57 +0100 [thread overview]
Message-ID: <20181119173857.GA11061@dell5510> (raw)
In-Reply-To: <3a454cb5-64d2-357e-2375-d25df6b1478d@oracle.com>
Hi Alexey,
> > tst_rhost_run with -s option in cleanup is only in 2 files:
> > testcases/network/mpls/mpls_lib.sh
> > testcases/network/tcp_cmds/sendfile/sendfile01
> > Maybe that's a mistake (unlike C functions where error in SAFE_* continue with
> > warning, in shell it exits during cleanup).
> For tst_test.sh we could add something like this to tst_brk()
> iff --git a/testcases/lib/tst_test.sh b/testcases/lib/tst_test.sh
> index 16081fa..e84cf7f 100644
> --- a/testcases/lib/tst_test.sh
> +++ b/testcases/lib/tst_test.sh
> @@ -41,6 +41,7 @@ trap "tst_brk TBROK 'test interrupted'" INT
> _tst_do_exit()
> {
> local ret=0
> + TST_DO_EXIT=1
> if [ -n "$TST_SETUP_STARTED" -a -n "$TST_CLEANUP" -a \
> -z "$TST_NO_CLEANUP" ]; then
> @@ -123,6 +124,11 @@ tst_brk()
> local res=$1
> shift
> + if [ "$TST_DO_EXIT" = 1 ]; then
> + tst_res TWARN "$@"
> + return
> + fi
> +
> tst_res "$res" "$@"
> _tst_do_exit
> }
Good idea! Could you please send a patch?
Kind regards,
Petr
prev parent reply other threads:[~2018-11-19 17:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-13 16:30 [LTP] [PATCH v4 1/2] net: Add tst_net_run helper Petr Vorel
2018-11-13 16:30 ` [LTP] [PATCH v4 2/2] net/ipsec: Add check for xfrm_user kernel module Petr Vorel
2018-11-16 11:51 ` [LTP] [PATCH v4 1/2] net: Add tst_net_run helper Alexey Kodanev
2018-11-16 14:24 ` Petr Vorel
2018-11-19 10:44 ` Alexey Kodanev
2018-11-19 15:40 ` Petr Vorel
2018-11-19 17:19 ` Alexey Kodanev
2018-11-19 17:38 ` Petr Vorel [this message]
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=20181119173857.GA11061@dell5510 \
--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