test suite reviews and discussions
 help / color / mirror / Atom feed
From: Dukai Yuan <dukaix.yuan@intel.com>
To: dts@dpdk.org
Cc: Dukai Yuan <dukaix.yuan@intel.com>
Subject: [dts][PATCH V1] tests/ipv4_reassembly: add check for tester port status
Date: Fri, 26 May 2023 14:49:02 +0000	[thread overview]
Message-ID: <20230526144902.3793277-1-dukaix.yuan@intel.com> (raw)

When using the ifconfig command to change the mtu value of the network card, 
the state of the network card may change from up to down.
Add the step of checking the status of the network card to ensure that the status of the network card is up.

Signed-off-by: Dukai Yuan <dukaix.yuan@intel.com>
---
 tests/TestSuite_ipv4_reassembly.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_ipv4_reassembly.py b/tests/TestSuite_ipv4_reassembly.py
index 1e9f7f4e..c6b0b227 100644
--- a/tests/TestSuite_ipv4_reassembly.py
+++ b/tests/TestSuite_ipv4_reassembly.py
@@ -86,7 +86,6 @@ class IpReassemblyTestConfig(object):
 
 
 class TestIpReassembly(TestCase):
-
     #
     #
     #
@@ -599,6 +598,7 @@ class TestIpReassembly(TestCase):
         )
         try:
             self.set_tester_iface_mtu(self.test_config.tester_iface, mtu)
+            self.tester.is_interface_up(self.test_config.tester_iface)
             self.set_max_num_of_fragments(4)
             self.compile_example_app()
             self.execute_example_app()
-- 
2.31.1


             reply	other threads:[~2023-05-26  7:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-26 14:49 Dukai Yuan [this message]
2023-06-07  5:53 ` 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=20230526144902.3793277-1-dukaix.yuan@intel.com \
    --to=dukaix.yuan@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).