From: Xie wei <weix.xie@intel.com>
To: dts@dpdk.org
Cc: Xie wei <weix.xie@intel.com>
Subject: [dts] [PATCH V1] tests/kernelpf_iavf: destory env need remove to run after this case
Date: Wed, 1 Jul 2020 17:30:40 +0800 [thread overview]
Message-ID: <20200701093040.3820-1-weix.xie@intel.com> (raw)
If vf_rx_interrupt verified failed, it can't restore env and influence
after cases.
Signed-off-by: Xie wei <weix.xie@intel.com>
---
tests/TestSuite_kernelpf_iavf.py | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/tests/TestSuite_kernelpf_iavf.py b/tests/TestSuite_kernelpf_iavf.py
index fd48fa2..6fb1bae 100644
--- a/tests/TestSuite_kernelpf_iavf.py
+++ b/tests/TestSuite_kernelpf_iavf.py
@@ -891,9 +891,6 @@ class TestKernelpfIavf(TestCase):
self.verify('L3FWD_POWER: lcore 6 is waked up from rx interrupt' in out, 'lcore 6 is not waked up')
self.verify('L3FWD_POWER: lcore 7 is waked up from rx interrupt' in out, 'lcore 7 is not waked up')
self.dut.send_expect("killall l3fwd-power", "# ", 60, alt_session=True)
- self.interrupt_flag = True
- time.sleep(1)
- self.destroy_2vf_in_2pf()
def test_vf_unicast(self):
self.vm_testpmd.start_testpmd("all")
@@ -984,8 +981,9 @@ class TestKernelpfIavf(TestCase):
"""
Run after each test case.
"""
- if self.interrupt_flag is True:
- self.interrupt_flag = False
+ if self.running_case == "test_vf_rx_interrupt"::
+ self.dut.send_expect("killall l3fwd-power", "# ", 60, alt_session=True)
+ self.destroy_2vf_in_2pf()
else:
self.vm_testpmd.execute_cmd("quit", "#")
time.sleep(1)
--
2.17.1
next reply other threads:[~2020-07-01 9:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-01 9:30 Xie wei [this message]
2020-07-02 7:17 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200701093040.3820-1-weix.xie@intel.com \
--to=weix.xie@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).