[V1] tests/TestSuite_vxlan_gpe_support_in_i40e:update scapy_modules path
Commit Message
update scapy_modules path
Signed-off-by: xizhan4x <xix.zhang@intel.com>
---
framework/settings.py | 1 +
tests/TestSuite_vxlan_gpe_support_in_i40e.py | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
Comments
Tested-by: Zhang, XiX <xix.zhang@intel.com>
Regards,
Zhang, Xi
> -----Original Message-----
> From: Zhang, XiX
> Sent: Thursday, September 24, 2020 1:48 PM
> To: dts@dpdk.org
> Cc: Zhang, XiX <xix.zhang@intel.com>
> Subject: [dts][PATCH V1] tests/TestSuite_vxlan_gpe_support_in_i40e:update
> scapy_modules path
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of xizhan4x
> Sent: Thursday, September 24, 2020 1:48 PM
> To: dts@dpdk.org
> Cc: Zhang, XiX <xix.zhang@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_vxlan_gpe_support_in_i40e:update
> scapy_modules path
>
> update scapy_modules path
>
> 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'
> }
It does not need to add the setting of the scapy_modules, we will use the default scapy pkg instead of local pkg afterwards.
Regards,
Ma,lihong
> update scapy_modules path
>
> Signed-off-by: xizhan4x <xix.zhang@intel.com>
Applied
@@ -43,6 +43,7 @@ FOLDERS = {
'Depends': 'dep',
'Output': 'output',
'NicDriver': 'nics',
+ 'scapy_modules': 'scapy_modules'
}
"""
@@ -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(