[dts] [PATCH V1 1/1] tests/dcf_lifecycle: support 4 ports
yufengmx
yufengx.mo at intel.com
Fri Jul 3 04:55:58 CEST 2020
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