test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1] tests/stats_checks: rebind interfaces after running test_xstats_check_vf
@ 2022-06-08  6:36 Yu.Jiang
  2022-06-15  9:07 ` lijuan.tu
  0 siblings, 1 reply; 2+ messages in thread
From: Yu.Jiang @ 2022-06-08  6:36 UTC (permalink / raw)
  To: dts; +Cc: Yu.Jiang

From: "Yu.Jiang" <yux.jiang@intel.com>

test_xstats_check_vf: rebind interface to avoid it impact next suite.

Signed-off-by: Yu.Jiang <yux.jiang@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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-15  9:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-08  6:36 [dts][PATCH V1] tests/stats_checks: rebind interfaces after running test_xstats_check_vf Yu.Jiang
2022-06-15  9:07 ` lijuan.tu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).