test suite reviews and discussions
 help / color / mirror / Atom feed
From: Chen Lingli <linglix.chen@intel.com>
To: dts@dpdk.org
Cc: Chen Lingli <linglix.chen@intel.com>
Subject: [dts] [PATCH V1] tests/shutdown_api: replace new commands
Date: Fri, 19 Mar 2021 16:57:50 +0000	[thread overview]
Message-ID: <20210319165750.8295-1-linglix.chen@intel.com> (raw)

According to dpdk commit ecf86ccb4b13 ("app/testpmd: remove duplicated offload display").
replace new commands

Signed-off-by: Chen Lingli <linglix.chen@intel.com>
---
 tests/TestSuite_shutdown_api.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py
index c647870d..79d0bdd7 100644
--- a/tests/TestSuite_shutdown_api.py
+++ b/tests/TestSuite_shutdown_api.py
@@ -621,9 +621,8 @@ class TestShutdownApi(TestCase):
                 vlan_jumbo_size = jumbo_size + 4
             else:
                 vlan_jumbo_size = jumbo_size
-            out = self.dut.send_expect("show port cap %d" % port, "testpmd> ")
-            state = re.findall("VLAN stripped:\s*([a-z]*)", out)
-            if state[0] == 'on':
+            out = self.dut.send_expect("show port %d rx_offload configuration" % port, "testpmd> ")
+            if 'VLAN_STRIP' in out:
                 vlan_strip = True
             else:
                 vlan_strip = False
-- 
2.17.1


             reply	other threads:[~2021-03-19  8:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-19 16:57 Chen Lingli [this message]
2021-03-19  8:36 ` Chen, LingliX
2021-03-19  9:02 ` Tu, Lijuan

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=20210319165750.8295-1-linglix.chen@intel.com \
    --to=linglix.chen@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).