public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: chrubis@suse.cz
To: Vincent Hsu <vincent.hsu@linaro.org>
Cc: ltp-list@lists.sourceforge.net, linaro-networking@linaro.org
Subject: Re: [LTP] [LNG][PATCH 8/8] ltp-networking/iproute: fix iproute test
Date: Tue, 26 Nov 2013 14:31:18 +0100	[thread overview]
Message-ID: <20131126133118.GA13496@rei> (raw)
In-Reply-To: <1384400319-30776-8-git-send-email-vincent.hsu@linaro.org>

Hi!
> ip02: set original mtu size back. this test will set mtu to 300.
> ip05: if there is not only one route, using "head" command will get
>       wrong result.
> 
> Signed-off-by: Vincent Hsu <vincent.hsu@linaro.org>
> ---
>  testcases/network/iproute/ip_tests.sh |    5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/testcases/network/iproute/ip_tests.sh b/testcases/network/iproute/ip_tests.sh
> index ce4cabc..e16f6c4 100755
> --- a/testcases/network/iproute/ip_tests.sh
> +++ b/testcases/network/iproute/ip_tests.sh
> @@ -187,6 +187,7 @@ test01()
> 
>  	tst_resm TINFO "Test #1: changing mtu size of eth0:1 device."
> 
> +	MTUSZ_BAK=`ifconfig eth0:1 | grep -i MTU | sed "s/^.*MTU://" | awk '{print $1}'`
>  	ip link set eth0:1 mtu 300 >$LTPTMP/tst_ip.err 2>&1
>  	if [ $RC -ne 0 ]
>  	then
> @@ -198,6 +199,7 @@ test01()
>  		if [ $MTUSZ -eq 300 ]
>  		then
>  			tst_resm TPASS "Test #1: changing mtu size success"
> +			ip link set eth0:1 mtu $MTUSZ_BAK >$LTPTMP/tst_ip.err 2>&1
>  		else
>  			tst_resm FAIL NULL \
>  				"Test #1: MTU value not set to 300: ifconfig returned: $MTUSZ"
> @@ -453,7 +455,8 @@ test05()
>  		10.6.6.6 via 127.0.0.1 dev lo
>  		EOF
> 
> -		ip route show | head -n1 >$LTPTMP/tst_ip.out 2>&1 || RC=$?
> +		ip route show | grep "10.6.6.6 via 127.0.0.1 dev lo" \
> +		>$LTPTMP/tst_ip.out 2>&1 || RC=$?
>  		if [ $RC -ne 0 ]
>  		then
>  			tst_res TFAIL $LTPTMP/tst_ip.err \

Can you please fix the two over 80 chars lines that your patch adds?

Otherwise this is fine.

-- 
Cyril Hrubis
chrubis@suse.cz

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

  reply	other threads:[~2013-11-26 13:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-14  3:38 [LTP] [LNG][PATCH 1/8] ltp-networking: standardize test result message Vincent Hsu
2013-11-14  3:38 ` [LTP] [LNG][PATCH 2/8] ltp-networking/rpc: gave precise test name Vincent Hsu
2013-11-14  3:38 ` [LTP] [LNG][PATCH 3/8] ltp-networking/nfs: use NFSv3 by default Vincent Hsu
2013-11-14  3:38 ` [LTP] [LNG][PATCH 4/8] ltp-networking/nfs: remove absolute path for showmount Vincent Hsu
2013-11-14  3:38 ` [LTP] [LNG][PATCH 5/8] ltp-networking/nfs: fix nfsstat01 typo Vincent Hsu
2013-11-14  3:38 ` [LTP] [LNG][PATCH 6/8] ltp-networking/tcp_cmds/finger: fix finger test Vincent Hsu
2013-11-26 13:33   ` chrubis
2013-11-14  3:38 ` [LTP] [LNG][PATCH 7/8] ltp-networking/tcp_cmds/netstat: fix netstat test Vincent Hsu
2013-11-15  6:27   ` Caspar Zhang
2013-11-26 12:56     ` chrubis
2013-11-14  3:38 ` [LTP] [LNG][PATCH 8/8] ltp-networking/iproute: fix iproute test Vincent Hsu
2013-11-26 13:31   ` chrubis [this message]
2013-11-26 13:34 ` [LTP] [LNG][PATCH 1/8] ltp-networking: standardize test result message 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=20131126133118.GA13496@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