test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/TestSuite_dcf_lifecycle: recovery ENV for other cases run
@ 2020-07-27 16:08 Jianwei Mei
  0 siblings, 0 replies; only message in thread
From: Jianwei Mei @ 2020-07-27 16:08 UTC (permalink / raw)
  To: dts; +Cc: Jianwei Mei

Recovery ENV after test case test_dcf_with_l2fwd_03 or test_dcf_with_l2fwd_02 run

Signed-off-by: Jianwei Mei <jianweix.mei@intel.com>
---
 tests/TestSuite_dcf_lifecycle.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/TestSuite_dcf_lifecycle.py b/tests/TestSuite_dcf_lifecycle.py
index 3971941..e3954d0 100644
--- a/tests/TestSuite_dcf_lifecycle.py
+++ b/tests/TestSuite_dcf_lifecycle.py
@@ -1048,6 +1048,10 @@ class TestDcfLifeCycle(TestCase):
         """
         Run after each test case.
         """
+        if self._suite_result.test_case == "test_dcf_with_l2fwd_03" or self._suite_result.test_case == "test_dcf_with_l2fwd_02":
+            self.destroy_resource()
+            self.init_suite()
+            self.preset_test_environment()
         self.dut.kill_all()
         self.clear_flags()
 
-- 
2.17.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-27  7:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-27 16:08 [dts] [PATCH V1] tests/TestSuite_dcf_lifecycle: recovery ENV for other cases run Jianwei Mei

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).