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 C5AE1A0613 for ; Mon, 23 Sep 2019 08:57:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B6F851BE92; Mon, 23 Sep 2019 08:57:54 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 0A4AA4C90 for ; Mon, 23 Sep 2019 08:57:53 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Sep 2019 23:57:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,539,1559545200"; d="scan'208";a="193007071" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga006.jf.intel.com with ESMTP; 22 Sep 2019 23:57:53 -0700 Received: from FMSMSX110.amr.corp.intel.com (10.18.116.10) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 22 Sep 2019 23:57:52 -0700 Received: from shsmsx108.ccr.corp.intel.com (10.239.4.97) by fmsmsx110.amr.corp.intel.com (10.18.116.10) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 22 Sep 2019 23:57:52 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.113]) by SHSMSX108.ccr.corp.intel.com ([169.254.8.146]) with mapi id 14.03.0439.000; Mon, 23 Sep 2019 14:57:51 +0800 From: "Mo, YufengX" To: "dts@dpdk.org" , "Li, WenjieX A" , "Chen, Zhaoyan" , "Tu, Lijuan" Thread-Topic: [dts][PATCH V2 7/7] framework/pktgen: fix internal bug Thread-Index: AQHVcdsGd8w/nRUYxEqljTOrj8oL3qc41LLw Date: Mon, 23 Sep 2019 06:57:50 +0000 Message-ID: References: <20190923065040.8251-1-yufengx.mo@intel.com> <20190923065040.8251-8-yufengx.mo@intel.com> In-Reply-To: <20190923065040.8251-8-yufengx.mo@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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 V2 7/7] framework/pktgen: fix internal bug 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" Tested by Mo, YufengX > -----Original Message----- > From: Mo, YufengX > Sent: Monday, September 23, 2019 2:51 PM > To: dts@dpdk.org; Li, WenjieX A ; Chen, Zhaoyan <= zhaoyan.chen@intel.com>; Tu, Lijuan > Cc: Mo, YufengX > Subject: [dts][PATCH V2 7/7] framework/pktgen: fix internal bug >=20 >=20 > *. remove un-used libs import. > *. remove set dts libs directory in system path. >=20 > Signed-off-by: yufengmx > --- > framework/pktgen.py | 9 +-------- > 1 file changed, 1 insertion(+), 8 deletions(-) >=20 > diff --git a/framework/pktgen.py b/framework/pktgen.py > index 2c6cf7f..7f8223f 100644 > --- a/framework/pktgen.py > +++ b/framework/pktgen.py > @@ -29,7 +29,7 @@ > # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE > # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >=20 > -import os, sys > +import os > from copy import deepcopy >=20 > from scapy.all import conf > @@ -38,13 +38,6 @@ from scapy.packet import Packet as scapyPacket > from scapy.fields import ConditionalField > from scapy.utils import rdpcap >=20 > -# import dts libs > -cwd =3D os.getcwd() > -sys.path.append(cwd + '/nics') > -sys.path.append(cwd + '/framework') > -sys.path.append(cwd + '/tests') > -sys.path.append(cwd + '/dep') > - > # dts libs > from utils import (convert_int2ip, convert_ip2int, > convert_mac2long, convert_mac2str) > -- > 2.21.0