[dts] [PATCH V1] tests/vf_pmd_stacked_bonded: optimize script
Jiale Song
songx.jiale at intel.com
Mon Apr 10 18:22:27 CEST 2023
some nic do not have "link-down-on-close" flags, but they also support
synchronizing the status of the vf port and the port of the peer port.
Signed-off-by: Jiale Song <songx.jiale at intel.com>
---
tests/TestSuite_vf_pmd_stacked_bonded.py | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_vf_pmd_stacked_bonded.py b/tests/TestSuite_vf_pmd_stacked_bonded.py
index 5765481e..615e9517 100644
--- a/tests/TestSuite_vf_pmd_stacked_bonded.py
+++ b/tests/TestSuite_vf_pmd_stacked_bonded.py
@@ -566,7 +566,10 @@ class TestVFPmdStackedBonded(TestCase):
"""
Test Case: active-backup stacked bonded rx traffic with slave down
"""
- self.verify(self.default_stats, "tester port not support '%s'" % self.flag)
+ if not self.default_stats:
+ self.logger.warning(
+ "Please ensure that the link status of the vf port can be synchronized with the peer port!!!"
+ )
self.backup_check_traffic_with_slave_down()
def test_mode_xor_rx(self):
@@ -579,7 +582,10 @@ class TestVFPmdStackedBonded(TestCase):
"""
Test Case: balance-xor stacked bonded rx traffic with slave down
"""
- self.verify(self.default_stats, "tester port not support '%s'" % self.flag)
+ if not self.default_stats:
+ self.logger.warning(
+ "Please ensure that the link status of the vf port can be synchronized with the peer port!!!"
+ )
self.xor_check_stacked_rx_one_slave_down()
def tear_down(self):
--
2.25.1
More information about the dts
mailing list