From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6D985A2EFC for ; Tue, 15 Oct 2019 07:14:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 55E831C227; Tue, 15 Oct 2019 07:14:08 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 5B2B01C2A4 for ; Tue, 15 Oct 2019 07:14:06 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Oct 2019 22:14:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,297,1566889200"; d="scan'208";a="198503018" Received: from dpdk-lihong-ub1604.sh.intel.com ([10.67.118.203]) by orsmga003.jf.intel.com with ESMTP; 14 Oct 2019 22:14:04 -0700 From: lihong To: dts@dpdk.org Cc: lihong Date: Tue, 15 Oct 2019 05:49:02 +0800 Message-Id: <1571089742-7077-3-git-send-email-lihongx.ma@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1571089742-7077-1-git-send-email-lihongx.ma@intel.com> References: <1571089742-7077-1-git-send-email-lihongx.ma@intel.com> Subject: [dts] [PATCH V2 3/3][nsh] tests/uni_pkt: update code 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: , Errors-To: dts-bounces@dpdk.org Sender: "dts" Signed-off-by: lihong --- tests/TestSuite_uni_pkt.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_uni_pkt.py b/tests/TestSuite_uni_pkt.py index 0310e04..e6bd42b 100644 --- a/tests/TestSuite_uni_pkt.py +++ b/tests/TestSuite_uni_pkt.py @@ -444,9 +444,8 @@ class TestUniPacket(TestCase): } for packet in nsh_packets: - self.tester.scapy_foreground() - self.tester.scapy_append("sendp([%s],iface='%s')" % (nsh_packets[packet], self.tester_iface)) - self.tester.scapy_execute() + pk=Packet(nsh_packets[packet]) + pk.send_pkt(self.tester, self.tester_iface) out = self.dut.get_session_output(timeout=2) self.verify(nsh_detect_message[packet] in out, "Packet Detection Error for : %s" % packet) print utils.GREEN("Detected packet %s Successfully" % packet) -- 2.7.4