From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 2B7AC7CDB for ; Wed, 14 Jun 2017 11:05:57 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP; 14 Jun 2017 02:05:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,340,1493708400"; d="scan'208";a="1160322501" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 14 Jun 2017 02:05:54 -0700 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Wed, 14 Jun 2017 17:07:16 +0800 Message-Id: <1497431236-6006-2-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1497431236-6006-1-git-send-email-lijuanx.a.tu@intel.com> References: <1497431236-6006-1-git-send-email-lijuanx.a.tu@intel.com> Subject: [dts] [PATCH V2 2/2] vxlan: snyc the vxlan_sample. 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: , X-List-Received-Date: Wed, 14 Jun 2017 09:05:57 -0000 Signed-off-by: Lijuan Tu --- tests/TestSuite_vxlan.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_vxlan.py b/tests/TestSuite_vxlan.py index 411ce22..7d34cdd 100644 --- a/tests/TestSuite_vxlan.py +++ b/tests/TestSuite_vxlan.py @@ -24,7 +24,7 @@ from scapy.config import conf from scapy.route import * from test_case import TestCase -from settings import HEADER_SIZE +from settings import HEADER_SIZE, FOLDERS from etgen import IxiaPacketGenerator # @@ -236,6 +236,11 @@ class VxlanTestConfig(object): """ Send vxlan pcap file by iface """ + # load vxlan module to scapy + cwd = os.getcwd() + dir_vxlan_module = cwd + r'/' + FOLDERS['Depends'] + self.test_case.tester.scapy_append("sys.path.append('%s')" % dir_vxlan_module) + self.test_case.tester.scapy_append("from vxlan import Vxlan") self.test_case.tester.scapy_append( 'pcap = rdpcap("%s")' % self.pcap_file) self.test_case.tester.scapy_append( -- 1.9.3