[dts] [PATCH V1] tests/enable_package_download_in_ice_driver:adapt testpmd output info

Zhimin Huang zhiminx.huang at intel.com
Tue Jul 13 15:01:33 CEST 2021


*.fix code to adapt testpmd output infomation

Signed-off-by: Zhimin Huang <zhiminx.huang at intel.com>
---
 tests/TestSuite_enable_package_download_in_ice_driver.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_enable_package_download_in_ice_driver.py b/tests/TestSuite_enable_package_download_in_ice_driver.py
index b57eb794..8bf21d18 100644
--- a/tests/TestSuite_enable_package_download_in_ice_driver.py
+++ b/tests/TestSuite_enable_package_download_in_ice_driver.py
@@ -99,11 +99,11 @@ class TestEnable_Package_Download_In_Ice_Driver(TestCase):
         out = self.dut_testpmd.start_testpmd("all", "--nb-cores=8 --rxq=%s --txq=%s --port-topology=chained" % (self.PF_QUEUE, self.PF_QUEUE), eal_param=self.eal_param)
         if ice_pkg == "false":
             if safe_mode_support == "true":
-                error_messages = ["ice_load_pkg(): failed to allocate buf of size 0 for package", \
+                error_messages = ["ice_load_pkg(): ice_copy_and_init_hw failed: -1", \
                     "ice_dev_init(): Failed to load the DDP package,Entering Safe Mode", \
                     "ice_init_rss(): RSS is not supported in safe mode"]
             if safe_mode_support == "false":
-                error_messages = ["ice_load_pkg(): failed to allocate buf of size 0 for package", \
+                error_messages = ["ice_load_pkg(): ice_copy_and_init_hw failed: -1", \
                     "ice_dev_init(): Failed to load the DDP package,Use safe-mode-support=1 to enter Safe Mode"]
             for error_message in error_messages:
                 self.verify(error_message in out, "There should be error messages in out: %s" % out)
@@ -291,7 +291,7 @@ class TestEnable_Package_Download_In_Ice_Driver(TestCase):
         self.use_correct_ice_pkg(flag="false")
         cmd = self.path + "-c 0x7 -n 4 -- -i --nb-cores=8 --rxq=%s --txq=%s --port-topology=chained" % (self.PF_QUEUE, self.PF_QUEUE)
         out = self.dut.send_expect(cmd, "#", 60)
-        error_messages = ["ice_load_pkg(): failed to allocate buf of size 0 for package", \
+        error_messages = ["ice_load_pkg(): ice_copy_and_init_hw failed: -1", \
                 "ice_dev_init(): Failed to load the DDP package,Use safe-mode-support=1 to enter Safe Mode"]
         for error_message in error_messages:
             self.verify(error_message in out, "There should be '%s' in out: %s" % (error_message, out))
-- 
2.17.1



More information about the dts mailing list