From: chrubis@suse.cz
To: Vincent Hsu <vincent.hsu@linaro.org>
Cc: ltp-list@lists.sourceforge.net,
Linaro Networking <linaro-networking@linaro.org>
Subject: Re: [LTP] [LNG][PATCH 4/9] ltp-networking/tcp_cmds/netstat: netstat cmds will return 1 even if no output in stderr on Ubuntu 12.04
Date: Mon, 11 Nov 2013 14:49:57 +0100 [thread overview]
Message-ID: <20131111134956.GC12164@rei> (raw)
In-Reply-To: <CAARHBVvTzEtp=ycDaiTwEwYFRR_DpVu=og-A7TWcOA7gPtwQeQ@mail.gmail.com>
Hi!
> > > for example:
> > > $ netstat -s 1>netstat/dev/null 2>&1 ; echo $?
> > > 1
> >
> > This is completly bogus code, it returns nonzero because the file
> > 'netstat/dev/null' cannot be found. It works for me if I remove the
> > 'netstat' from the line.
> >
> Sorry, it a typo.
Ok.
> it will returns nonzero in ubuntu 12.04. it's a similar case to finger test.
>
> for example:
> $ netstat -s 1>/dev/null 2>&1 ; echo $?
> 1
Ah, so the -s is correct netstat switch and the 1 is invalid parameter
(which gets ignored here) but apparently debian base distros are patched
to return non-zero.
So resend the patch with correct description (i.e. that this fixes the
test on debian based distributions).
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2013-11-11 13:50 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-29 22:20 [LTP] [LNG][PATCH 0/9] ltp-networking on ubuntu Vincent Hsu
2013-10-29 22:20 ` [LTP] [LNG][PATCH 1/9] ltp-networking/nfs: Setting the NFS to version 3 by default. NFSv3 is more compatibled with recent linux distributions Vincent Hsu
2013-11-07 13:29 ` chrubis
[not found] ` <CAARHBVvTfK3B6dMPXvwd0dajfFWv_cNX-DkV_fHUnZjuB04u+A@mail.gmail.com>
[not found] ` <CAARHBVuOoFVrr7L_f=sMKykjYsawvuzG+wYWOrZDsLTBxpEcGQ@mail.gmail.com>
2013-11-11 13:32 ` chrubis
2013-10-29 22:20 ` [LTP] [LNG][PATCH 2/9] ltp-networking/nfs: don't use absolute path for showmount. showmount does not locate at /user/sbin/showmount on Ubuntu 12.04 Vincent Hsu
2013-11-07 13:29 ` chrubis
2013-10-29 22:20 ` [LTP] [LNG][PATCH 3/9] ltp-networking/tcp_cmds/finger: finger an unknown host test will return 1 even if execution success " Vincent Hsu
2013-11-07 13:12 ` chrubis
[not found] ` <CAARHBVsQQEdYjY59Wa80ZO6TiVvb5gfWRA4vigMPmy-+tyH0jA@mail.gmail.com>
2013-11-11 13:14 ` chrubis
2013-10-29 22:20 ` [LTP] [LNG][PATCH 4/9] ltp-networking/tcp_cmds/netstat: netstat cmds will return 1 even if no output in stderr " Vincent Hsu
2013-11-07 13:14 ` chrubis
[not found] ` <CAARHBVvTzEtp=ycDaiTwEwYFRR_DpVu=og-A7TWcOA7gPtwQeQ@mail.gmail.com>
2013-11-11 13:49 ` chrubis [this message]
2013-10-29 22:20 ` [LTP] [LNG][PATCH 5/9] ltp-networking/tcp_cmds/tcpdump: 1. RHOST IP won't appear in network interfaces. It should be LHOST. 2. Host commad can't fetch IP in no DNS enviroment. use ping intead of it Vincent Hsu
2013-11-07 13:25 ` chrubis
2013-11-07 14:03 ` chrubis
2013-11-07 13:27 ` chrubis
2013-11-08 2:32 ` Simon Xu
2013-10-29 22:20 ` [LTP] [LNG][PATCH 6/9] ltp-networking/iproute: ip02: set original mtu size back. this test will set mtu to 300. ip05: if there is nott only one route using "head" command will get wrong result Vincent Hsu
2013-11-07 13:52 ` chrubis
2013-10-29 22:20 ` [LTP] [LNG][PATCH 7/9] ltp-networking/iptables: "iptables -L -t nat" lists 4 chains not 3 chains on Ubuntu 12.04 Vincent Hsu
2013-11-07 13:31 ` chrubis
2013-11-08 2:30 ` Simon Xu
2013-10-29 22:20 ` [LTP] [LNG][PATCH 8/9] ltp-networking: standardize test result message Vincent Hsu
2013-11-07 13:43 ` chrubis
2013-10-29 22:20 ` [LTP] [LNG][PATCH 9/9] ltp-networking/rpc: gave precise test name Vincent Hsu
2013-11-07 13:45 ` chrubis
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=20131111134956.GC12164@rei \
--to=chrubis@suse.cz \
--cc=linaro-networking@linaro.org \
--cc=ltp-list@lists.sourceforge.net \
--cc=vincent.hsu@linaro.org \
/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