[dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using apps_name
Jiang, YuX
yux.jiang at intel.com
Wed Sep 16 13:34:22 CEST 2020
Tested-by: Jiang, YuX <yux.jiang at intel.com>
Best Regards
Jiang yu
> -----Original Message-----
> From: Jiang, YuX
> Sent: Wednesday, September 16, 2020 7:35 PM
> To: dts at dpdk.org
> Cc: Jiang, YuX <yux.jiang at intel.com>
> Subject: [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build
> using apps_name
>
> From: JiangYu <yux.jiang at intel.com>
>
> update killall apps_name
>
> Signed-off-by: JiangYu <yux.jiang at intel.com>
> ---
> tests/TestSuite_vhost_pmd_xstats.py | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/tests/TestSuite_vhost_pmd_xstats.py
> b/tests/TestSuite_vhost_pmd_xstats.py
> index f68385f..a3b0a2f 100755
> --- a/tests/TestSuite_vhost_pmd_xstats.py
> +++ b/tests/TestSuite_vhost_pmd_xstats.py
> @@ -73,6 +73,7 @@ class TestVhostPmdXstats(TestCase):
> self.core_list_host = self.core_list[3:6]
> self.dst_mac = self.dut.get_mac_address(self.dut_ports[0])
> self.app_testpmd_path = self.dut.apps_name['test-pmd']
> + self.testpmd_name=self.app_testpmd_path.split("/")[-1]
>
> def set_up(self):
> """
> @@ -80,7 +81,7 @@ class TestVhostPmdXstats(TestCase):
> Launch vhost sample using default params
> """
> self.dut.send_expect("rm -rf ./vhost-net*", "#")
> - self.dut.send_expect("killall -s INT testpmd", "#")
> + self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#")
> self.vhost_user = self.dut.new_session(suite="vhost-user")
> self.virtio_user = self.dut.new_session(suite="virtio-user")
>
> @@ -345,10 +346,10 @@ class TestVhostPmdXstats(TestCase):
> """
> Run after each test case.
> """
> - self.dut.send_expect("killall -s INT testpmd", "#")
> + self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#")
>
> def tear_down_all(self):
> """
> Run after each test suite.
> """
> - pass
> \ No newline at end of file
> + pass
> --
> 2.7.4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestVhostPmdXstats.log
Type: application/octet-stream
Size: 22914 bytes
Desc: TestVhostPmdXstats.log
URL: <http://mails.dpdk.org/archives/dts/attachments/20200916/afc5e8c1/attachment.obj>
More information about the dts
mailing list