From: Hongbo Li <hongbox.li@intel.com>
To: dts@dpdk.org
Cc: Hongbo Li <hongbox.li@intel.com>
Subject: [dts][PATCH V1] tests/ice_iavf_fdir: optimize scripts
Date: Thu, 15 Dec 2022 22:00:11 +0800 [thread overview]
Message-ID: <20221215140011.14633-1-hongbox.li@intel.com> (raw)
If testcase of throws an exception, and multiple testpmds have been started, the vf cannot be cleaned, and cause other cases to fail.
Therefore, by adjusting the cleaning environment order, make sure to exit all sessions before cleaning vf.
Signed-off-by: Hongbo Li <hongbox.li@intel.com>
---
tests/TestSuite_ice_iavf_fdir.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_ice_iavf_fdir.py b/tests/TestSuite_ice_iavf_fdir.py
index d6ca832a..b7954784 100644
--- a/tests/TestSuite_ice_iavf_fdir.py
+++ b/tests/TestSuite_ice_iavf_fdir.py
@@ -11932,12 +11932,12 @@ class TestICEIAVFFdir(TestCase):
"test_mac_ipv6_multicast_protocol",
]:
self.pmd_output.execute_cmd("mcast_addr remove 0 11:22:33:44:55:66")
- self.destroy_env()
- self.dut.kill_all()
if getattr(self, "session_secondary", None):
self.dut.close_session(self.session_secondary)
if getattr(self, "session_third", None):
self.dut.close_session(self.session_third)
+ self.destroy_env()
+ self.dut.kill_all()
if self.running_case in [
"test_pfcp_vlan_strip_off_sw_checksum",
--
2.17.1
next reply other threads:[~2022-12-15 5:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-15 14:00 Hongbo Li [this message]
2022-12-21 9:22 ` Jiale, SongX
2022-12-22 8:46 ` lijuan.tu
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=20221215140011.14633-1-hongbox.li@intel.com \
--to=hongbox.li@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).