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 3/9] ltp-networking/tcp_cmds/finger: finger an unknown host test will return 1 even if execution success on Ubuntu 12.04
Date: Mon, 11 Nov 2013 14:14:56 +0100 [thread overview]
Message-ID: <20131111131456.GA12164@rei> (raw)
In-Reply-To: <CAARHBVsQQEdYjY59Wa80ZO6TiVvb5gfWRA4vigMPmy-+tyH0jA@mail.gmail.com>
Hi!
> > > for example:
> > > $ finger @xxxx || echo "test fail"
> > > finger: unknown host: xxxx
> > > getaddrinfo: No address associated with hostname
> > > test fail
> >
> > Hmm, at my computers (SUSE, Gentoo) it works as:
> >
> > $ finger @xxxx || echo "test fail"
> > finger: unknown host: xxxx
> >
> > Are you sure that finger returns nonzero? From what package and what
> > version does your finger come from?
> >
> Yes, it returns nonzero in ubuntu. I have tested it in centos before, it
> returned zero same as your enviroment. I thinks it doen't relative to the
> package version, because it also happened in netstat test. I considerd that
> the default shell in ubuntu is dash not bash before, but it doesn't help
> even I forced to use bash. Maybe it cause by the bash version or something
> else, I could find the root cause yet. If you have time can you test it in
> debian based distribution?
>
> However, I gave by finger and bash package version below, it seems applying
> some patch not pure packages.
>
> apt-get source finger
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Picking 'bsd-finger' as source package instead of 'finger'
> Need to get 37.6 kB of source archives.
> Get:1 http://ubuntu.cs.nctu.edu.tw/ubuntu/ precise/main bsd-finger 0.17-14
> (dsc) [1,653 B]
> Get:2 http://ubuntu.cs.nctu.edu.tw/ubuntu/ precise/main bsd-finger 0.17-14
> (tar) [25.5 kB]
> Get:3 http://ubuntu.cs.nctu.edu.tw/ubuntu/ precise/main bsd-finger 0.17-14
> (diff) [10.4 kB]
> Fetched 37.6 kB in 0s (168 kB/s)
> gpgv: Signature made Fri 12 Feb 2010 02:03:58 PM CST using RSA key ID
> 947897D8
> gpgv: Can't check signature: public key not found
> dpkg-source: warning: failed to verify signature on ./bsd-finger_0.17-14.dsc
> dpkg-source: info: extracting bsd-finger in bsd-finger-0.17
> dpkg-source: info: unpacking bsd-finger_0.17.orig.tar.gz
> dpkg-source: info: unpacking bsd-finger_0.17-14.debian.tar.bz2
> dpkg-source: info: applying 01-legacy.patch
> dpkg-source: info: applying 02-518559-nsswitch-sources.patch
> dpkg-source: info: applying 03-468454-fingerd-ipv6.patch
> dpkg-source: info: applying 04-468454-finger-ipv6.patch
> dpkg-source: info: applying 05-547014-netgroup.patch
Looks like this is caused by the 01-legacy.patch that is part of the
debian package and gets picked up by ubuntu as well.
> > Btw what is wrong at the code bellow is the redirection, which does not
> > work, the >/dev/null should be before the 2>&1. Even if your finger
> > really returns nonzero the code bellow is quite cryptic as it looks like
> > it redirects all output from the finger into the /dev/null but it really
> > just redirects stderr into stdout which goes to the grep...
> >
> Yes, I thinks the redirection sequence is weird, I just don't want to do
> many modifications of the original code. Can you help to improve it?
Just send fixes for the redirection in separate patch first and then
patch that fixes the finger return value.
--
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:15 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 [this message]
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
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=20131111131456.GA12164@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