From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id BB5A51B80D for ; Thu, 8 Feb 2018 09:02:58 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Feb 2018 00:02:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,477,1511856000"; d="scan'208";a="33058902" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by orsmga002.jf.intel.com with ESMTP; 08 Feb 2018 00:02:55 -0800 From: "zhu,shuai" To: dts@dpdk.org Cc: "zhu,shuai" Date: Thu, 8 Feb 2018 16:04:08 +0800 Message-Id: <1518077048-48849-1-git-send-email-shuaix.zhu@intel.com> X-Mailer: git-send-email 1.9.3 Signed-off-by: zhu,shuai Subject: [dts] [PATCH V1] tests/TestSuite_vlan_ethertype_config.py :stop port before set tx_vlan 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: Thu, 08 Feb 2018 08:02:59 -0000 diff --git a/tests/TestSuite_vlan_ethertype_config.py b/tests/TestSuite_vlan_ethertype_config.py index 8e6dd49..1fb30fb 100644 --- a/tests/TestSuite_vlan_ethertype_config.py +++ b/tests/TestSuite_vlan_ethertype_config.py @@ -286,8 +286,12 @@ class TestVlanEthertypeConfig(TestCase): self.dut.send_expect("vlan set outer tpid 0x%x %s" % (tpid, dutTxPortId), "testpmd> ") for tx_vlan in tx_vlans: + self.dut.send_expect("stop", "testpmd>") + self.dut.send_expect("port stop all", "testpmd> ") self.dut.send_expect( "tx_vlan set %s 0x%x" % (dutTxPortId, tx_vlan), "testpmd> ") + self.dut.send_expect("port start all", "testpmd> ") + self.dut.send_expect("start", "testpmd>") self.start_tcpdump(self.rxItf) self.vlan_send_packet(-1) out = self.get_tcpdump_packet(self.rxItf) @@ -296,8 +300,12 @@ class TestVlanEthertypeConfig(TestCase): self.verify(str("%x" % tpid) in out, "Wrong vlan:" + str(out)) self.verify( str("%x" % tx_vlan) in out, "Vlan not found:" + str(out)) + self.dut.send_expect("stop", "testpmd>") + self.dut.send_expect("port stop all", "testpmd> ") self.dut.send_expect( "tx_vlan reset %s" % dutTxPortId, "testpmd> ", 30) + self.dut.send_expect("port start all", "testpmd> ") + self.dut.send_expect("start", "testpmd>") self.start_tcpdump(self.rxItf) self.vlan_send_packet(-1) out = self.get_tcpdump_packet(self.rxItf) -- 1.9.3