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

Xie wei weix.xie at intel.com
Thu Oct 22 11:36:16 CEST 2020


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 at intel.com>
---
 tests/TestSuite_iavf_fdir.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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.")
 
-- 
2.17.1



More information about the dts mailing list