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 49007A3160 for ; Sat, 12 Oct 2019 08:10:13 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 25FB31EB88; Sat, 12 Oct 2019 08:10:13 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 643851EB3C for ; Sat, 12 Oct 2019 08:10:11 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Oct 2019 23:10:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.67,286,1566889200"; d="scan'208";a="278352029" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga001.jf.intel.com with ESMTP; 11 Oct 2019 23:10:10 -0700 Received: from fmsmsx156.amr.corp.intel.com (10.18.116.74) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 11 Oct 2019 23:10:09 -0700 Received: from shsmsx107.ccr.corp.intel.com (10.239.4.96) by fmsmsx156.amr.corp.intel.com (10.18.116.74) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 11 Oct 2019 23:10:09 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.96]) by SHSMSX107.ccr.corp.intel.com ([169.254.9.33]) with mapi id 14.03.0439.000; Sat, 12 Oct 2019 14:10:07 +0800 From: "Tu, Lijuan" To: "Ma, LihongX" , "dts@dpdk.org" CC: "Ma, LihongX" Thread-Topic: [dts] [PATCH V1 3/3][nsh] tests/uni_pkt: import nsh from current dep Thread-Index: AQHVgAiNRFy8lEi+wECA2VsN5u3qZKdWhzYg Date: Sat, 12 Oct 2019 06:10:07 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BB3EC7E@SHSMSX101.ccr.corp.intel.com> References: <1570753506-1810-1-git-send-email-lihongx.ma@intel.com> <1570753506-1810-3-git-send-email-lihongx.ma@intel.com> In-Reply-To: <1570753506-1810-3-git-send-email-lihongx.ma@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiM2EyYmY4NzQtYmJjZi00M2I2LTkyMjItYTE0ZDU0ZGE4YTQyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiVHhyMkF4cURzR1p3Tm4xK210OWZSKzdHQzkwRzNEZFluYkJuVUVVcFptQmVcL1pCWTJBT0Q1d2NwUm9oWTZJRTAifQ== x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dts] [PATCH V1 3/3][nsh] tests/uni_pkt: import nsh from current dep 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" Please rework your patch series, the framework changed. > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of lihong > Sent: Friday, October 11, 2019 8:25 AM > To: dts@dpdk.org > Cc: Ma, LihongX > Subject: [dts] [PATCH V1 3/3][nsh] tests/uni_pkt: import nsh from current > dep >=20 > Signed-off-by: lihong > --- > tests/TestSuite_uni_pkt.py | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) >=20 > diff --git a/tests/TestSuite_uni_pkt.py b/tests/TestSuite_uni_pkt.py inde= x > 9a75061..cdc5849 100644 > --- a/tests/TestSuite_uni_pkt.py > +++ b/tests/TestSuite_uni_pkt.py > @@ -47,6 +47,7 @@ import utils > from test_case import TestCase > from exception import VerifyFailure > from packet import Packet > +import os > import time >=20 >=20 > @@ -442,10 +443,12 @@ class TestUniPacket(TestCase): > "ether+nsh+ipv6+udp": "L2_ETHER_NSH > L3_IPV6_EXT_UNKNOWN L4_UDP", \ > "ether+nsh+ipv6+sctp": "L2_ETHER_NSH > L3_IPV6_EXT_UNKNOWN L4_SCTP" > } > - > + cwd =3D os.getcwd() > + dir_module =3D cwd + r"/" + "dep" > for packet in nsh_packets: > self.tester.scapy_foreground() > - self.tester.scapy_append("from scapy.contrib.nsh import *") > + self.tester.scapy_append("sys.path.append('%s')" % dir_modul= e) > + self.tester.scapy_append("from nsh import NSH") > self.tester.scapy_append("sendp([%s],iface=3D'%s')" % > (nsh_packets[packet], self.tester_iface)) > self.tester.scapy_execute() > out =3D self.dut.get_session_output(timeout=3D2) > -- > 2.7.4