From patchwork Thu Sep 24 05:48:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, XiX" X-Patchwork-Id: 78650 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6FB41A04B1; Thu, 24 Sep 2020 07:46:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3771B1DD3D; Thu, 24 Sep 2020 07:46:38 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id DF48D1DD35 for ; Thu, 24 Sep 2020 07:46:36 +0200 (CEST) IronPort-SDR: nYaUbLks5weC2XGDWVcj3yT/7O1igY/VL9gEBGBZmn9s9/kkVhawP8lW7LPq7ZXL1+QmC4qCpV gCkmMEa85Uyw== X-IronPort-AV: E=McAfee;i="6000,8403,9753"; a="148856119" X-IronPort-AV: E=Sophos;i="5.77,296,1596524400"; d="scan'208";a="148856119" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Sep 2020 22:46:35 -0700 IronPort-SDR: ukXSuyrQrS2Ed/SgwiY2ANQ+dWkefJG8uVmFs6qxqhHx8ICd26qbxcdsxm2Hs168c6X1Gqjc0Q Yt7emZ8iePOw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,296,1596524400"; d="scan'208";a="322847832" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.182.150]) by orsmga002.jf.intel.com with ESMTP; 23 Sep 2020 22:46:34 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Thu, 24 Sep 2020 13:48:00 +0800 Message-Id: <1600926480-32551-1-git-send-email-xix.zhang@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V1] tests/TestSuite_vxlan_gpe_support_in_i40e:update scapy_modules path 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" update scapy_modules path Signed-off-by: xizhan4x Tested-by: Zhang, XiX --- framework/settings.py | 1 + tests/TestSuite_vxlan_gpe_support_in_i40e.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/settings.py b/framework/settings.py index 850fa89..9654f70 100644 --- a/framework/settings.py +++ b/framework/settings.py @@ -43,6 +43,7 @@ FOLDERS = { 'Depends': 'dep', 'Output': 'output', 'NicDriver': 'nics', + 'scapy_modules': 'scapy_modules' } """ diff --git a/tests/TestSuite_vxlan_gpe_support_in_i40e.py b/tests/TestSuite_vxlan_gpe_support_in_i40e.py index e797802..8b781e3 100644 --- a/tests/TestSuite_vxlan_gpe_support_in_i40e.py +++ b/tests/TestSuite_vxlan_gpe_support_in_i40e.py @@ -122,7 +122,7 @@ class VxlanGpeTestConfig(object): """ # load vxlan module to scapy cwd = os.getcwd() - dir_vxlan_module = cwd + r'/' + FOLDERS['Depends'] + dir_vxlan_module = cwd + r'/' + FOLDERS['Depends'] + r'/' + FOLDERS['scapy_modules'] 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(