diff mbox series

[V1,5/5] tests/TestSuite_dcf_lifecycle:support meson build method

Message ID 20200911025758.9246-6-weix.xie@intel.com (mailing list archive)
State Accepted
Headers show
Series support meson build method | expand

Commit Message

Xie, WeiX Sept. 11, 2020, 2:57 a.m. UTC
Signed-off-by: Xie wei <weix.xie@intel.com>
---
 tests/TestSuite_dcf_lifecycle.py | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/tests/TestSuite_dcf_lifecycle.py b/tests/TestSuite_dcf_lifecycle.py
index 6be7b24..76c29f8 100644
--- a/tests/TestSuite_dcf_lifecycle.py
+++ b/tests/TestSuite_dcf_lifecycle.py
@@ -302,8 +302,7 @@  class TestDcfLifeCycle(TestCase):
         return output
 
     def init_vf_dcf_testpmd(self):
-        self.vf_dcf_testpmd = "{}/{}/app/testpmd".format(
-            self.target_dir, self.dut.target)
+        self.vf_dcf_testpmd = self.dut.apps_name['test-pmd']
 
     def start_vf_dcf_testpmd(self, pmd_opiton):
         whitelist_name, prefix = pmd_opiton
@@ -359,16 +358,15 @@  class TestDcfLifeCycle(TestCase):
         return output
 
     def create_vf_testpmd2(self):
-        self.vf_testpmd2 = "{}/{}/app/testpmd_vf".format(
-            self.target_dir, self.dut.target)
-        cmd = 'rm -f {vf_pmd2};cp {vf_dcf_pmd} {vf_pmd2}'.format(
+        self.vf_testpmd2 = self.dut.apps_name['testpmd_vf']
+        cmd = 'rm -f /root/dpdk/{vf_pmd2};cp /root/dpdk/{vf_dcf_pmd} /root/dpdk/{vf_pmd2}'.format(
             **{'vf_dcf_pmd': self.vf_dcf_testpmd, 'vf_pmd2': self.vf_testpmd2})
         self.d_a_con(cmd)
 
     def init_vf_testpmd2(self):
         self.create_vf_testpmd2()
         self.vf_pmd2_session_name = 'vf_testpmd2'
-        self.vf_pmd2_session = self.dut.create_session(
+        self.vf_pmd2_session = self.dut.new_session(
             self.vf_pmd2_session_name)
 
     def start_vf_testpmd2(self, pmd_opiton):