test suite reviews and discussions
 help / color / mirror / Atom feed
From: Xie wei <weix.xie@intel.com>
To: dts@dpdk.org
Cc: Xie wei <weix.xie@intel.com>
Subject: [dts] [PATCH V1 2/5] tests/TestSuite_enable_package_download_in_ice_driver:support meson build method
Date: Fri, 11 Sep 2020 10:57:55 +0800	[thread overview]
Message-ID: <20200911025758.9246-3-weix.xie@intel.com> (raw)
In-Reply-To: <20200911025758.9246-1-weix.xie@intel.com>

Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_enable_package_download_in_ice_driver.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/TestSuite_enable_package_download_in_ice_driver.py b/tests/TestSuite_enable_package_download_in_ice_driver.py
index 5364975..b57eb79 100644
--- a/tests/TestSuite_enable_package_download_in_ice_driver.py
+++ b/tests/TestSuite_enable_package_download_in_ice_driver.py
@@ -53,6 +53,7 @@ class TestEnable_Package_Download_In_Ice_Driver(TestCase):
         self.dut_p0_mac = self.dut.get_mac_address(self.dut_ports[0])
         self.tester_p0_mac = self.tester.get_mac(localPort0)
         self.dut_testpmd = PmdOutput(self.dut)
+        self.path = self.dut.apps_name['test-pmd']
 
         self.pkg_file1 = '/lib/firmware/intel/ice/ddp/ice.pkg'
         self.pkg_file2 = '/lib/firmware/updates/intel/ice/ddp/ice.pkg'
@@ -288,7 +289,7 @@ class TestEnable_Package_Download_In_Ice_Driver(TestCase):
         use wrong ice.pkg and start testpmd without "safe-mode-suppor", no port is loaded in testpmd
         """
         self.use_correct_ice_pkg(flag="false")
-        cmd = "./%s/app/testpmd -c 0x7 -n 4 -- -i --nb-cores=8 --rxq=%s --txq=%s --port-topology=chained" % (self.target, self.PF_QUEUE, self.PF_QUEUE)
+        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", \
                 "ice_dev_init(): Failed to load the DDP package,Use safe-mode-support=1 to enter Safe Mode"]
@@ -340,7 +341,7 @@ class TestEnable_Package_Download_In_Ice_Driver(TestCase):
             self.generate_delete_specify_pkg(pkg_ver=self.new_pkgs[i], sn=self.nic_sn[i], key="true")
 
         eal_param = "-w %s " % self.nic_pci[0] + "-w %s " % self.nic_pci[1] + "--log-level=8"
-        out = self.dut_testpmd.execute_cmd("./%s/app/testpmd %s -- -i " % (self.target, eal_param))
+        out = self.dut_testpmd.execute_cmd(self.path + eal_param + " -- -i ")
         self.dut_testpmd.quit()
 
         # Delete ice-<interface serial number>.pkg to recover the ENV
-- 
2.17.1


  parent reply	other threads:[~2020-09-11  2:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-11  2:57 [dts] [PATCH V1 0/5] support " Xie wei
2020-09-11  2:57 ` [dts] [PATCH V1 1/5] tests/TestSuite_iavf_package_driver_error_handle:support " Xie wei
2020-09-11  2:57 ` Xie wei [this message]
2020-09-11  2:57 ` [dts] [PATCH V1 3/5] tests/TestSuite_rteflow_priority:support " Xie wei
2020-09-11  2:57 ` [dts] [PATCH V1 4/5] tests/TestSuite_iavf_fdir:support " Xie wei
2020-09-11  2:57 ` [dts] [PATCH V1 5/5] tests/TestSuite_dcf_lifecycle:support " Xie wei
2020-09-15  8:42 ` [dts] [PATCH V1 0/5] support " 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=20200911025758.9246-3-weix.xie@intel.com \
    --to=weix.xie@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).