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 9DC72A046B for ; Mon, 19 Aug 2019 05:48:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5E55C1B05; Mon, 19 Aug 2019 05:48:19 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id C43A123D for ; Mon, 19 Aug 2019 05:48:17 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x7J3e1ke023568 for ; Sun, 18 Aug 2019 20:48:16 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0818; bh=VDgkP2OdTHDK2ZMiDbmy4iYfYFOgqJ5jb5i3w70kwTA=; b=ehDOavZlKFkLL0KhSflL0HNXX21Yk+aHWpeNg+DMUUE5eR2EVct1I1MpxLDv93gGQMpR iYidAn0/AlWtas2TCim60/RtC0AhT2ftGY+XuNmsRq9QLa2Xqjkxynmxasqs0LLNfAK5 n+9zSggPGjcCWIzv32EskLjyUz3mdWVtb0kgIkXOG+wl0Zu9MzSN52J5KlhG7hqzfcsp ROSmnR6WPCA6etuzE7Fk5LytQOILnlW9y06Xdbk83z3L/SDBw8IaklXLx6bG9c6mA2eL dmx4qIWxpeMNbNljuOXvFQIOqJAb8cDhXeTmHqt/ie2hQg1s6xvjKGhjIAIjqkUQotDN DA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2ueexpn2vn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 18 Aug 2019 20:48:16 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sun, 18 Aug 2019 20:48:15 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Sun, 18 Aug 2019 20:48:15 -0700 Received: from localhost.marvell.com (unknown [10.28.10.195]) by maili.marvell.com (Postfix) with ESMTP id DADB23F703F; Sun, 18 Aug 2019 20:48:13 -0700 (PDT) From: To: CC: , , Praneeth Reddy Date: Mon, 19 Aug 2019 09:18:11 +0530 Message-ID: <1566186491-28189-1-git-send-email-nareddy@marvell.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-08-19_01:2019-08-16,2019-08-19 signatures=0 Subject: [dts] [PATCH] TestSuite_l2fwd.py: Corrected dest mac address with correct mac 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" From: Praneeth Reddy Corrected dest mac with DUT ports mac address. Signed-off-by: Praneeth Reddy --- tests/TestSuite_l2fwd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_l2fwd.py b/tests/TestSuite_l2fwd.py index b064afd..e2c4118 100644 --- a/tests/TestSuite_l2fwd.py +++ b/tests/TestSuite_l2fwd.py @@ -152,7 +152,8 @@ class TestL2fwd(TestCase): rx_port = self.tester.get_local_port(self.dut_ports[1]) tgen_input.append((tx_port, rx_port)) - result = self.tester.check_random_pkts(tgen_input, allow_miss=False) + self.dst_mac = self.dut.get_mac_address(self.dut_ports[0]) + result = self.tester.check_random_pkts(tgen_input, allow_miss=False, params = [('ether', {'dst': '%s'%(self.dst_mac)})]) self.verify(result != False, "Packet integrity check failed") self.quit_l2fwd() -- 1.8.3.1