From: Hushan Jia <hjia@redhat.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] [PATCH] network: Fix iproute test case error
Date: Thu, 03 Sep 2009 17:22:49 +0800 [thread overview]
Message-ID: <4A9F8AE9.300@redhat.com> (raw)
Hello,
When I run network test case testcases/network/iproute/ip_tests.sh, some errors shown:
ip01 0 TINFO : Test #1: changing mtu size of eth0:1 device.
/mnt/ltp/ltp-full-20090731/testcases/bin/ip_tests.sh: line 198: [: -eq: unary operator expected.
The output of
ifconfig eth0:1 | grep -i MTU | sed "s/^.*MTU://"
is like:
1500 Metric:1
so should print field 1 instead of field 5.
Thanks& Regards,
Hushan
---
network: Fix iproute test case error
Signed-off-by: Hushan Jia<hjia@redhat.com>
diff -Nrup ltp-full-20090831-orig/testcases/network/iproute/ip_tests.sh ltp-full-20090831/testcases/network/iproute/ip_tests.sh
--- ltp-full-20090831-orig/testcases/network/iproute/ip_tests.sh 2009-09-03 16:47:56.000000000 +0800
+++ ltp-full-20090831/testcases/network/iproute/ip_tests.sh 2009-09-03 16:51:04.000000000 +0800
@@ -194,7 +194,7 @@ test01()
"Test #1: ip command failed. Reason: "
return $RC
else
- MTUSZ=`ifconfig eth0:1 | grep -i MTU | sed "s/^.*MTU://" | awk '{print $5}'`
+ MTUSZ=`ifconfig eth0:1 | grep -i MTU | sed "s/^.*MTU://" | awk '{print $1}'`
if [ $MTUSZ -eq 300 ]
then
tst_resm TPASS "Test #1: changing mtu size success"
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next reply other threads:[~2009-09-03 9:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-03 9:22 Hushan Jia [this message]
2009-09-07 11:40 ` [LTP] [PATCH] network: Fix iproute test case error Subrata Modak
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=4A9F8AE9.300@redhat.com \
--to=hjia@redhat.com \
--cc=ltp-list@lists.sourceforge.net \
/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