* [dts] [PATCH V2] tests/dcf_lifecycle:recovery ENV for other cases run
@ 2020-07-27 17:07 Jianwei Mei
2020-08-12 5:47 ` Tu, Lijuan
0 siblings, 1 reply; 2+ messages in thread
From: Jianwei Mei @ 2020-07-27 17:07 UTC (permalink / raw)
To: dts; +Cc: Jianwei Mei
1. If vf is created, set a vf as trust will fail, so destroy it before set trust.
2. Need recovery the ENV for other cases after case test_dcf_with_l2fwd_03 and test_dcf_with_l2fwd_02 run.
Signed-off-by: Jianwei Mei <jianweix.mei@intel.com>
---
tests/TestSuite_dcf_lifecycle.py | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/tests/TestSuite_dcf_lifecycle.py b/tests/TestSuite_dcf_lifecycle.py
index 3971941..9be071c 100644
--- a/tests/TestSuite_dcf_lifecycle.py
+++ b/tests/TestSuite_dcf_lifecycle.py
@@ -933,6 +933,8 @@ class TestDcfLifeCycle(TestCase):
self.run_test_post()
self.check_dcf_with_l2fwd_adp_failed_result(output)
# Exit DCF mode, PF can set L2 forwarding.
+ self.dut.destroy_sriov_vfs_by_port(0)
+ time.sleep(1)
output = self.set_adq_mac_vlan()
self.check_dcf_with_l2fwd_adp_result(output)
except Exception as e:
@@ -956,6 +958,8 @@ class TestDcfLifeCycle(TestCase):
pmd_opts = [['pf1_vf0_dcf', 'dcf']]
self.run_test_pre(pmd_opts)
# run PF1 DCF mode, PF2 can set L2 forwarding.
+ self.dut.destroy_sriov_vfs_by_port(1)
+ time.sleep(1)
output = self.set_adq_mac_vlan(1)
self.remove_adq_mac_vlan(1)
self.run_test_post()
@@ -1048,6 +1052,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] 2+ messages in thread
* Re: [dts] [PATCH V2] tests/dcf_lifecycle:recovery ENV for other cases run
2020-07-27 17:07 [dts] [PATCH V2] tests/dcf_lifecycle:recovery ENV for other cases run Jianwei Mei
@ 2020-08-12 5:47 ` Tu, Lijuan
0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2020-08-12 5:47 UTC (permalink / raw)
To: Mei, JianweiX, dts; +Cc: Mei, JianweiX
> Subject: [dts] [PATCH V2] tests/dcf_lifecycle:recovery ENV for other cases run
>
> 1. If vf is created, set a vf as trust will fail, so destroy it before set trust.
> 2. Need recovery the ENV for other cases after case test_dcf_with_l2fwd_03
> and test_dcf_with_l2fwd_02 run.
>
> Signed-off-by: Jianwei Mei <jianweix.mei@intel.com>
> ---
> tests/TestSuite_dcf_lifecycle.py | 8 ++++++++
Applied, thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-12 5:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-27 17:07 [dts] [PATCH V2] tests/dcf_lifecycle:recovery ENV for other cases run Jianwei Mei
2020-08-12 5:47 ` Tu, Lijuan
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).