[dts][PATCH V1] tests/stats_checks: rebind interfaces after running test_xstats_check_vf
Yu.Jiang
yux.jiang at intel.com
Wed Jun 8 08:36:58 CEST 2022
From: "Yu.Jiang" <yux.jiang at intel.com>
test_xstats_check_vf: rebind interface to avoid it impact next suite.
Signed-off-by: Yu.Jiang <yux.jiang at intel.com>
---
tests/TestSuite_stats_checks.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/TestSuite_stats_checks.py b/tests/TestSuite_stats_checks.py
index 331e9c3b..7ebb74d5 100644
--- a/tests/TestSuite_stats_checks.py
+++ b/tests/TestSuite_stats_checks.py
@@ -260,6 +260,9 @@ class TestStatsChecks(TestCase):
Run after each test case.
"""
self.dut.kill_all()
+ if self._suite_result.test_case == "test_xstats_check_vf":
+ self.dut.destroy_sriov_vfs_by_port(self.dut_ports[0])
+ self.dut.bind_interfaces_linux(self.drivername)
def tear_down_all(self):
"""
--
2.25.1
More information about the dts
mailing list