From: "zhang,yan" <yanx.a.zhang@intel.com>
To: dts@dpdk.org
Cc: "zhang,yan" <yanx.a.zhang@intel.com>
Subject: [dts] [PATCH V1] tests/TestSuite_vf_jumboframe:Optimize the code to exit testpmd
Date: Fri, 25 Oct 2019 10:47:20 +0800 [thread overview]
Message-ID: <1571971640-152141-1-git-send-email-yanx.a.zhang@intel.com> (raw)
Optimize the code to exit testpmd.
Signed-off-by: zhang,yan <yanx.a.zhang@intel.com>
---
tests/TestSuite_vf_jumboframe.py | 20 +++-----------------
1 file changed, 3 insertions(+), 17 deletions(-)
diff --git a/tests/TestSuite_vf_jumboframe.py b/tests/TestSuite_vf_jumboframe.py
index dd728d9..6626635 100644
--- a/tests/TestSuite_vf_jumboframe.py
+++ b/tests/TestSuite_vf_jumboframe.py
@@ -174,7 +174,7 @@ class TestVfJumboFrame(TestCase):
pkt = Packet(pkt_type='UDP', pkt_len=pktsize)
pkt.config_layer('ether', {'dst': mac})
- pkt.send_pkt(self.tester, tx_port=self.tester_intf)
+ pkt.send_pkt(self.tester, tx_port=self.tester_intf, timeout=10)
time.sleep(1)
@@ -219,9 +219,6 @@ class TestVfJumboFrame(TestCase):
self.jumboframes_send_packet(ETHER_STANDARD_MTU - 1)
self.jumboframes_send_packet(ETHER_STANDARD_MTU)
- self.vm_testpmd.execute_cmd("stop")
- self.vm_testpmd.quit()
-
def test_vf_normal_withjumbo(self):
"""
When jumbo frame supported, this case is to verify that the normal size
@@ -240,9 +237,6 @@ class TestVfJumboFrame(TestCase):
self.jumboframes_send_packet(ETHER_STANDARD_MTU - 1)
self.jumboframes_send_packet(ETHER_STANDARD_MTU)
- self.vm_testpmd.execute_cmd("stop")
- self.vm_testpmd.quit()
-
def test_vf_jumbo_nojumbo(self):
"""
This case aims to test transmitting jumbo frame packet on testpmd without
@@ -269,9 +263,6 @@ class TestVfJumboFrame(TestCase):
else:
self.jumboframes_send_packet(ETHER_STANDARD_MTU + 1, False)
- self.vm_testpmd.execute_cmd("stop")
- self.vm_testpmd.quit()
-
def test_vf_jumbo_withjumbo(self):
"""
When jumbo frame supported, this case is to verify that jumbo frame
@@ -291,9 +282,6 @@ class TestVfJumboFrame(TestCase):
self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU - 1)
self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU)
- self.vm_testpmd.execute_cmd("stop")
- self.vm_testpmd.quit()
-
def test_vf_jumbo_overjumbo(self):
"""
When the jubmo frame MTU set as 9000, this case is to verify that the
@@ -315,14 +303,12 @@ class TestVfJumboFrame(TestCase):
else:
self.jumboframes_send_packet(ETHER_JUMBO_FRAME_MTU + 1, False)
- self.vm_testpmd.execute_cmd("stop")
- self.vm_testpmd.quit()
-
def tear_down(self):
"""
Run after each test case.
"""
- pass
+ self.vm_testpmd.execute_cmd("stop")
+ self.vm_testpmd.quit()
def tear_down_all(self):
"""
--
2.17.2
next reply other threads:[~2019-10-25 2:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-25 2:47 zhang,yan [this message]
2019-10-25 2:43 ` Yao, BingX Y
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=1571971640-152141-1-git-send-email-yanx.a.zhang@intel.com \
--to=yanx.a.zhang@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).