[dts] [PATCH V1 1/1] tests/dcf_lifecycle: support 4 ports

Tu, Lijuan lijuan.tu at intel.com
Mon Jul 20 08:55:28 CEST 2020


Applied, thanks

> -----Original Message-----
> From: dts <dts-bounces at dpdk.org> On Behalf Of yufengmx
> Sent: 2020年7月3日 10:56
> To: dts at dpdk.org; Mei, JianweiX <jianweix.mei at intel.com>
> Cc: Mo, YufengX <yufengx.mo at intel.com>
> Subject: [dts] [PATCH V1 1/1] tests/dcf_lifecycle: support 4 ports
> 
> 
> support 4 ports.
> 
> Signed-off-by: yufengmx <yufengx.mo at intel.com>
> ---
>  tests/TestSuite_dcf_lifecycle.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/TestSuite_dcf_lifecycle.py b/tests/TestSuite_dcf_lifecycle.py
> index 90a56e6..3971941 100644
> --- a/tests/TestSuite_dcf_lifecycle.py
> +++ b/tests/TestSuite_dcf_lifecycle.py
> @@ -249,7 +249,7 @@ class TestDcfLifeCycle(TestCase):
>          pf1_vf1 = self.vf_ports_info[0].get('vfs_pci')[1]
>          pf1_vf2 = self.vf_ports_info[0].get('vfs_pci')[2]
>          pf2_vf0 = self.vf_ports_info[1].get('vfs_pci')[0] \
> -            if len(self.vf_ports_info) == 2 else ''
> +            if len(self.vf_ports_info) >= 2 else ''
>          whitelist = {
>              'pf1_vf0_dcf': f"-w {pf1_vf0},cap=dcf",
>              'pf1_vf1_dcf': f"-w {pf1_vf1},cap=dcf",
> --
> 2.21.0



More information about the dts mailing list