[V1] tests/TestSuite_iavf_fdir:the error info changes no such device to invaild port

Message ID 20201022093616.29080-1-weix.xie@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/TestSuite_iavf_fdir:the error info changes no such device to invaild port |

Commit Message

Xie, WeiX Oct. 22, 2020, 9:36 a.m. UTC
  run command with invalid port 'flow flush 2', the error info changes no such device to invaild port.

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_iavf_fdir.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Xie, WeiX Oct. 22, 2020, 9:34 a.m. UTC | #1
Tested-by:  Xie,WeiX < weix.xie@intel.com>

Regards,
Xie Wei


> -----Original Message-----
> From: Xie wei [mailto:weix.xie@intel.com]
> Sent: Thursday, October 22, 2020 5:36 PM
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [dts][PATCH V1] tests/TestSuite_iavf_fdir:the error info changes no
> such device to invaild port
  
Ma, LihongX Oct. 29, 2020, 8:56 a.m. UTC | #2
Acke-by: Lihong Ma<lihongx.ma@intel.com>

Regards,
Ma,lihong

> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Xie wei
> Sent: Thursday, October 22, 2020 5:36 PM
> To: dts@dpdk.org
> Cc: Xie, WeiX <weix.xie@intel.com>
> Subject: [dts] [PATCH V1] tests/TestSuite_iavf_fdir:the error info changes
> no such device to invaild port
> 
> run command with invalid port 'flow flush 2', the error info changes no
> such device to invaild port.
> 
> Signed-off-by: Xie wei <weix.xie@intel.com>
> ---
  
Tu, Lijuan Nov. 3, 2020, 2:07 a.m. UTC | #3
> > run command with invalid port 'flow flush 2', the error info changes
> > no such device to invaild port.
> >
> > Signed-off-by: Xie wei <weix.xie@intel.com>
> Acke-by: Lihong Ma<lihongx.ma@intel.com>

Applied
  

Patch

diff --git a/tests/TestSuite_iavf_fdir.py b/tests/TestSuite_iavf_fdir.py
index 05ec2d52..d1186471 100755
--- a/tests/TestSuite_iavf_fdir.py
+++ b/tests/TestSuite_iavf_fdir.py
@@ -2496,7 +2496,7 @@  class TestIAVFFdir(TestCase):
         out2 = self.pmd_output.execute_cmd("flow destroy 2 rule 0")
         self.verify("Invalid port" in out2, "there should report error message")
         out3 = self.pmd_output.execute_cmd("flow flush 2")
-        self.verify("No such device" in out3, "port 2 doesn't exist.")
+        self.verify("Invalid port" in out3, "port 2 doesn't exist.")
         out4 = self.pmd_output.execute_cmd("flow list 2")
         self.verify("Invalid port" in out4, "port 2 doesn't exist.")