diff mbox series

[V1] tests/shutdown_api: replace new commands

Message ID 20210319165750.8295-1-linglix.chen@intel.com (mailing list archive)
State Accepted
Headers show
Series [V1] tests/shutdown_api: replace new commands | expand

Commit Message

Chen, LingliX March 19, 2021, 4:57 p.m. UTC
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(-)

Comments

Chen, LingliX March 19, 2021, 8:36 a.m. UTC | #1
> -----Original Message-----
> From: Chen, LingliX
> Sent: Saturday, March 20, 2021 12:58 AM
> To: dts@dpdk.org
> Cc: Chen, LingliX <linglix.chen@intel.com>
> Subject: [dts][PATCH V1] tests/shutdown_api: replace new commands

Tested-by: Chen Lingli <linglix.chen@intel.com>
Tu, Lijuan March 19, 2021, 9:02 a.m. UTC | #2
> According to dpdk commit ecf86ccb4b13 ("app/testpmd: remove duplicated
> offload display").
> replace new commands
> 
> Signed-off-by: Chen Lingli <linglix.chen@intel.com>

Applied, thanks
diff mbox series

Patch

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