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 49C19A2EFC for ; Wed, 18 Sep 2019 09:28:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 610C31C0D8; Wed, 18 Sep 2019 09:28:00 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 1A2F52C6A for ; Wed, 18 Sep 2019 09:27:58 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Sep 2019 00:27:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,519,1559545200"; d="scan'208";a="202006461" Received: from dpdk-xinfengx-dut242.sh.intel.com ([10.67.117.34]) by fmsmga001.fm.intel.com with ESMTP; 18 Sep 2019 00:27:52 -0700 From: Xinfeng Zhao To: dts@dpdk.org Cc: Xinfeng Zhao Date: Wed, 18 Sep 2019 07:19:22 +0800 Message-Id: <1568762365-19112-2-git-send-email-xinfengx.zhao@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1568762365-19112-1-git-send-email-xinfengx.zhao@intel.com> References: <1568762365-19112-1-git-send-email-xinfengx.zhao@intel.com> Subject: [dts] [PATCH V1 2/5] tests/TestSuite_ddp_gtp.py: load the local dep module in scapy command 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: Xinfeng Zhao --- tests/TestSuite_ddp_gtp.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_ddp_gtp.py b/tests/TestSuite_ddp_gtp.py index b8f6817..d8e1302 100644 --- a/tests/TestSuite_ddp_gtp.py +++ b/tests/TestSuite_ddp_gtp.py @@ -2,15 +2,18 @@ import time import re +import os import sys import utils from qemu_kvm import QEMUKvm from test_case import TestCase from pmd_output import PmdOutput -from settings import get_nic_name +from settings import get_nic_name, FOLDERS import random VM_CORES_MASK = 'all' +CWD = os.getcwd() +DIR_DEPEND = os.path.join(CWD, FOLDERS['Depends']) class TestDdpGtp(TestCase): @@ -294,6 +297,8 @@ class TestDdpGtp(TestCase): for chksum_opt in ['good chksum', 'bad chksum']: pkts = self.gtp_packets( type, tunnel_pkt, inner_L3, match_opt, chk, teid) + self.tester.scapy_append("sys.path.append('%s')" % DIR_DEPEND) + self.tester.scapy_append("from gtp import *") for packet_type in pkts.keys(): count = count + 1 self.tester.scapy_append( -- 2.17.1