From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 4A6A320F for ; Mon, 12 Dec 2016 08:27:55 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP; 11 Dec 2016 23:27:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,334,1477983600"; d="scan'208";a="1070975632" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga001.jf.intel.com with ESMTP; 11 Dec 2016 23:27:45 -0800 From: "xu,huilong" To: dts@dpdk.org Cc: "xu,huilong" Date: Mon, 12 Dec 2016 15:28:54 +0800 Message-Id: <1481527734-28062-1-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] fix kni ping/stress X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2016 07:27:57 -0000 Signed-off-by: xu,huilong --- tests/TestSuite_kni.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_kni.py b/tests/TestSuite_kni.py index 18bd768..432526e 100644 --- a/tests/TestSuite_kni.py +++ b/tests/TestSuite_kni.py @@ -574,12 +574,13 @@ class TestKni(TestCase): out = self.dut.send_expect("ping6 -w 1 -I %s %s" % (virtual_interface, str(ipv6_address)), "# ", 10) - self.verify("64 bytes from %s: icmp_seq=1 ttl=64" % + # some os ping6 out info not same + self.verify("64 bytes from %s" % ipv6_address in out, "ping6 not supported") out = self.tester.send_expect( "ping6 -w 1 -I %s %s" % (tx_interface, str(ipv6_address)), "# ", 10) - self.verify("64 bytes from %s: icmp_seq=1 ttl=64" % + self.verify("64 bytes from %s" % ipv6_address in out, "kni cannot reply ping6 packet") ipv6list = list(ipv6_address) @@ -806,14 +807,13 @@ class TestKni(TestCase): try: out = self.start_kni(step['lo_mode'], step['kthread_mode']) self.verify("Error" not in out, "Error found during kni start") + # kni setup out info by kernel debug function. so should re-build kenel. + # now not check kni setup out info, only check kni setup ok and setup no error output + out = self.dut.send_expect('ps -aux', "]# ") except: # some permutations have to fail pass - out = self.dut.send_expect('dmesg -c | grep "KNI"', "]# ") - self.verify(len(re.findall(expectedMessage, out, re.DOTALL)) > 0, - "Module not properly loaded") - def test_perf_loopback(self): """ KNI loopback performance -- 1.9.3