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 2B313A0613 for ; Mon, 23 Sep 2019 08:49:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5D9C71BECB; Mon, 23 Sep 2019 08:49:15 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 8D7BB1BECA for ; Mon, 23 Sep 2019 08:49:13 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Sep 2019 23:49:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,539,1559545200"; d="scan'208";a="388384381" Received: from dpdk-moyufen06.sh.intel.com ([10.67.116.222]) by fmsmga005.fm.intel.com with ESMTP; 22 Sep 2019 23:49:12 -0700 From: yufengmx To: dts@dpdk.org, wenjiex.a.li@intel.com, zhaoyan.chen@intel.com, lijuan.tu@intel.com Cc: yufengmx Date: Mon, 23 Sep 2019 14:50:40 +0800 Message-Id: <20190923065040.8251-8-yufengx.mo@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190923065040.8251-1-yufengx.mo@intel.com> References: <20190923065040.8251-1-yufengx.mo@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [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" *. remove un-used libs import. *. remove set dts libs directory in system path. Signed-off-by: yufengmx --- framework/pktgen.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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. -import os, sys +import os from copy import deepcopy 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 -# import dts libs -cwd = 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