test suite reviews and discussions
 help / color / 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, back to index

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

test suite reviews and discussions

Archives are clonable:
	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts


Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/ public-inbox