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 325762E8A for ; Tue, 26 May 2015 12:05:56 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 26 May 2015 03:05:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,497,1427785200"; d="scan'208";a="498271362" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by FMSMGA003.fm.intel.com with ESMTP; 26 May 2015 03:05:53 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id t4QA5pQR007788; Tue, 26 May 2015 18:05:51 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t4QA5nwS020600; Tue, 26 May 2015 18:05:51 +0800 Received: (from jingguox@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id t4QA5mYN020596; Tue, 26 May 2015 18:05:48 +0800 From: Jingguo Fu To: dts@dpdk.org Date: Tue, 26 May 2015 18:05:45 +0800 Message-Id: <1432634747-20565-1-git-send-email-jingguox.fu@intel.com> X-Mailer: git-send-email 1.7.4.1 Cc: Jingguo Fu Subject: [dts] [DTS][PATCH 1/3] ieee1588: fix sutie for framework update 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: Tue, 26 May 2015 10:05:56 -0000 Signed-off-by: Jingguo Fu --- tests/TestSuite_ieee1588.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/tests/TestSuite_ieee1588.py b/tests/TestSuite_ieee1588.py index bf48188..6ee95e4 100644 --- a/tests/TestSuite_ieee1588.py +++ b/tests/TestSuite_ieee1588.py @@ -36,22 +36,16 @@ Test support of IEEE1588 Precise Time Protocol. import dts import time - - from test_case import TestCase from pmd_output import PmdOutput - class TestIeee1588(TestCase): def set_up_all(self): """ Run at the start of each test suite. - - IEEE1588 Prerequisites """ - dutPorts = self.dut.get_ports() self.verify(len(dutPorts) > 0, "No ports found for " + self.nic) @@ -64,7 +58,7 @@ class TestIeee1588(TestCase): self.dut.build_install_dpdk(self.target) self.pmdout = PmdOutput(self.dut) - self.pmdout.start_testpmd("all") + self.pmdout.start_testpmd("Default") def set_up(self): """ @@ -76,10 +70,11 @@ class TestIeee1588(TestCase): """ IEEE1588 Enable test case. """ - self.dut.send_expect("set fwd ieee1588", "testpmd> ") - self.dut.send_expect("start", ">", 5) # Waiting for 'testpmd> ' Fails due to log messages, "Received non PTP packet", in the output - time.sleep(1) # Allow the output from the "start" command to finish before looking for a regexp in expect + # Waiting for 'testpmd> ' Fails due to log messages, "Received non PTP packet", in the output + self.dut.send_expect("start", ">", 5) + # Allow the output from the "start" command to finish before looking for a regexp in expect + time.sleep(1) # use the first port on that self.nic dutPorts = self.dut.get_ports() @@ -92,7 +87,6 @@ class TestIeee1588(TestCase): # this is the output of sniff # [>] - self.tester.scapy_foreground() self.tester.scapy_append('nutmac="01:1b:19:00:00:00"') self.tester.scapy_append('sendp([Ether(dst=nutmac,type=0x88f7)/"\\x00\\x02"], iface="%s")' % itf) @@ -120,7 +114,6 @@ class TestIeee1588(TestCase): """ IEEE1588 Disable test case. """ - self.dut.send_expect("stop", "testpmd> ") time.sleep(3) -- 2.1.0