From: "Yu.Jiang" <yux.jiang@intel.com>
To: dts@dpdk.org
Cc: "Yu.Jiang" <yux.jiang@intel.com>
Subject: [dts][PATCH V1] tests/stats_checks: rebind interfaces after running test_xstats_check_vf
Date: Wed, 8 Jun 2022 14:36:58 +0800 [thread overview]
Message-ID: <1654670218-5658-1-git-send-email-yux.jiang@intel.com> (raw)
From: "Yu.Jiang" <yux.jiang@intel.com>
test_xstats_check_vf: rebind interface to avoid it impact next suite.
Signed-off-by: Yu.Jiang <yux.jiang@intel.com>
---
tests/TestSuite_stats_checks.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/TestSuite_stats_checks.py b/tests/TestSuite_stats_checks.py
index 331e9c3b..7ebb74d5 100644
--- a/tests/TestSuite_stats_checks.py
+++ b/tests/TestSuite_stats_checks.py
@@ -260,6 +260,9 @@ class TestStatsChecks(TestCase):
Run after each test case.
"""
self.dut.kill_all()
+ if self._suite_result.test_case == "test_xstats_check_vf":
+ self.dut.destroy_sriov_vfs_by_port(self.dut_ports[0])
+ self.dut.bind_interfaces_linux(self.drivername)
def tear_down_all(self):
"""
--
2.25.1
next reply other threads:[~2022-06-08 6:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-08 6:36 Yu.Jiang [this message]
2022-06-15 9:07 ` 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=1654670218-5658-1-git-send-email-yux.jiang@intel.com \
--to=yux.jiang@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).