[dts] [PATCH V1] tests/nvgre:Modify the syntax error.

Mo, YufengX yufengx.mo at intel.com
Tue Aug 13 06:48:59 CEST 2019


`If ( )` is a C language usage habit, Could you remove it?


> -----Original Message-----
> From: dts [mailto:dts-bounces at dpdk.org] On Behalf Of zhu,shuai
> Sent: Tuesday, August 13, 2019 10:46 AM
> To: dts at dpdk.org
> Cc: Zhu, WenhuiX <wenhuix.zhu at intel.com>; Zhu, ShuaiX <shuaix.zhu at intel.com>
> Subject: [dts] [PATCH V1] tests/nvgre:Modify the syntax error.
> 
> Modify the syntax error.
> 
> Signed-off-by: zhu,shuai <shuaix.zhu at intel.com>
> ---
>  tests/TestSuite_nvgre.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_nvgre.py b/tests/TestSuite_nvgre.py
> index 62aac3a..dbba011 100644
> --- a/tests/TestSuite_nvgre.py
> +++ b/tests/TestSuite_nvgre.py
> @@ -162,7 +162,7 @@ class NvgreTestConfig(object):
>          """
>          Return nvgre packet type
>          """
> -        if (self.nic in ["cavium_a063", "cavium_a064"]):
> +        if (nic in ["cavium_a063", "cavium_a064"]):
>              if self.outer_ip_proto !=47:
>                  if self.outer_l3_type == 'IPv4':
>                      return 'L3_IPV4'
> --
> 2.17.2



More information about the dts mailing list