From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Xie, WeiX" <weix.xie@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Xie, WeiX" <weix.xie@intel.com>
Subject: Re: [dts] [PATCH V2] tests/cvl_advanced_iavf_rss:need quit testpmd to restore env
Date: Thu, 2 Jul 2020 07:19:08 +0000 [thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC68DDC@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <20200702025331.27351-1-weix.xie@intel.com>
Applied, thanks
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Xie wei
> Sent: 2020年7月2日 10:54
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [dts] [PATCH V2] tests/cvl_advanced_iavf_rss:need quit testpmd to
> restore env
>
> need quit testpmd before rmmoding ice.
>
> Signed-off-by: Xie wei <weix.xie@intel.com>
> ---
> tests/TestSuite_cvl_advanced_iavf_rss.py | 13 +++++++++----
> 1 file changed, 9 insertions(+), 4 deletions(-)
>
> diff --git a/tests/TestSuite_cvl_advanced_iavf_rss.py
> b/tests/TestSuite_cvl_advanced_iavf_rss.py
> index 1e6ac19..eaf55fa 100644
> --- a/tests/TestSuite_cvl_advanced_iavf_rss.py
> +++ b/tests/TestSuite_cvl_advanced_iavf_rss.py
> @@ -1112,10 +1112,15 @@ class AdvancedIavfRSSTest(TestCase):
> self.create_testpmd_command(self.vf0_prop)
> error_rule = ["flow create 0 ingress pattern eth / ipv4 / udp / pfcp / end
> actions rss types pfcp end key_len 0 queues end / end ",
> "flow create 0 ingress pattern eth / ipv6 / udp / pfcp / end actions
> rss types pfcp end key_len 0 queues end / end ", ]
> - for rule in error_rule:
> - out = self.pmd_output.execute_cmd(rule)
> - self.verify("Failed to create flow" in out, "Rule can be created")
> - self.replace_pkg(self.comms_pkg_name)
> + try:
> + for rule in error_rule:
> + out = self.pmd_output.execute_cmd(rule)
> + self.verify("Failed to create flow" in out, "Rule can be created")
> + except Exception as e:
> + raise Exception(e)
> + finally:
> + self.pmd_output.quit()
> + self.replace_pkg(self.comms_pkg_name)
>
> def replace_pkg(self, pkg):
> self.dut_session.send_expect("cd %s" % self.ddp_fdir, "# ")
> --
> 2.17.1
prev parent reply other threads:[~2020-07-02 7:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-02 2:53 Xie wei
2020-07-02 7:19 ` Tu, Lijuan [this message]
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=8CE3E05A3F976642AAB0F4675D0AD20E0BC68DDC@SHSMSX101.ccr.corp.intel.com \
--to=lijuan.tu@intel.com \
--cc=dts@dpdk.org \
--cc=weix.xie@intel.com \
/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).