From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [RFC PATCH v2 2/2] tst_netload: Exit with TCONF when netstress exit with CONF
Date: Thu, 1 Mar 2018 19:42:22 +0100 [thread overview]
Message-ID: <20180301184222.GA16992@x230> (raw)
In-Reply-To: <65377935-590d-6623-dafb-db85899e8f0c@oracle.com>
Hi Alexey,
> On 03/01/2018 01:59 PM, Petr Vorel wrote:
> > as some issues are configuration issues.
> > Signed-off-by: Petr Vorel <pvorel@suse.cz>
> > ---
> > testcases/lib/test_net.sh | 4 +++-
> > 1 file changed, 3 insertions(+), 1 deletion(-)
> > diff --git a/testcases/lib/test_net.sh b/testcases/lib/test_net.sh
> > index 95e13ee03..db9bb028d 100644
> > --- a/testcases/lib/test_net.sh
> > +++ b/testcases/lib/test_net.sh
> > @@ -453,7 +453,9 @@ tst_netload()
> > tst_rhost_run -c "netstress $s_opts" > tst_netload.log 2>&1
> > if [ $? -ne 0 ]; then
> > cat tst_netload.log
> > - tst_brkm TFAIL "server failed"
> > + local ttype="TFAIL"
> > + grep -e 'CONF:' tst_netload.log && ttype="TCONF"
> What about using the returned status instead of grep?
Sure, that's much better solution, thanks!
Kind regards,
Petr
next prev parent reply other threads:[~2018-03-01 18:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-01 10:59 [LTP] [RFC PATCH v2 1/2] lib: TCONF on "not supported" errnos in SAFE_SOCKET() Petr Vorel
2018-03-01 10:59 ` [LTP] [RFC PATCH v2 2/2] tst_netload: Exit with TCONF when netstress exit with CONF Petr Vorel
2018-03-01 15:49 ` Alexey Kodanev
2018-03-01 18:42 ` Petr Vorel [this message]
2018-03-02 9:12 ` Petr Vorel
2018-03-01 15:43 ` [LTP] [RFC PATCH v2 1/2] lib: TCONF on "not supported" errnos in SAFE_SOCKET() Alexey Kodanev
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=20180301184222.GA16992@x230 \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.