From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 61099A04C7; Fri, 18 Sep 2020 07:29:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 54BF11D8D0; Fri, 18 Sep 2020 07:29:12 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 49A4A1D8D8 for ; Fri, 18 Sep 2020 07:29:08 +0200 (CEST) IronPort-SDR: bzE4nc6/grtHfVNU+i+khorpi1YbM730llla65uosbVDWQmFOBekanQN1sPw1y1JcW4VeVKe3Q 5s0bz1pJludw== X-IronPort-AV: E=McAfee;i="6000,8403,9747"; a="244696477" X-IronPort-AV: E=Sophos;i="5.77,273,1596524400"; d="scan'208";a="244696477" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2020 22:29:07 -0700 IronPort-SDR: x8VSAPGMK0Bor5aFPbJJFojVal6ThRUxP4ZsB8cXgTTKMcaIMhkVKuwG4z1zmAu7RT+WdtssIU kzz+2kUIla8g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,273,1596524400"; d="scan'208";a="320492516" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 17 Sep 2020 22:29:06 -0700 From: "Jiang, YuX" To: dts@dpdk.org Cc: JiangYu Date: Fri, 18 Sep 2020 13:26:26 +0800 Message-Id: <20200918052626.9525-8-yux.jiang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200918052626.9525-1-yux.jiang@intel.com> References: <20200918052626.9525-1-yux.jiang@intel.com> Subject: [dts] [PATCH V1 7/7] tests/TestSuite_loopback_multi_paths_port_restart: support meson build X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" From: JiangYu Adapt testpmd_name Signed-off-by: JiangYu --- tests/TestSuite_loopback_multi_paths_port_restart.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_loopback_multi_paths_port_restart.py b/tests/TestSuite_loopback_multi_paths_port_restart.py index 7a1448d..54c9756 100644 --- a/tests/TestSuite_loopback_multi_paths_port_restart.py +++ b/tests/TestSuite_loopback_multi_paths_port_restart.py @@ -58,6 +58,7 @@ class TestLoopbackPortRestart(TestCase): self.core_list_user = self.core_list[0:2] self.core_list_host = self.core_list[2:5] self.path=self.dut.apps_name['test-pmd'] + self.testpmd_name = self.path.split("/")[-1] def set_up(self): """ @@ -65,7 +66,7 @@ class TestLoopbackPortRestart(TestCase): """ # Clean the execution ENV self.dut.send_expect("rm -rf ./vhost.out", "#") - self.dut.send_expect("killall -s INT testpmd", "#") + self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#") self.dut.send_expect("killall -s INT qemu-system-x86_64", "#") # Prepare the result table self.table_header = ["FrameSize(B)", "Mode", "Throughput(Mpps)", "Cycle"] @@ -78,7 +79,7 @@ class TestLoopbackPortRestart(TestCase): """ start testpmd on vhost """ - self.dut.send_expect("killall -s INT testpmd", "#") + self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#") self.dut.send_expect("rm -rf ./vhost-net*", "#") eal_param = self.dut.create_eal_parameters(cores=self.core_list_host, prefix='vhost', no_pci=True, vdevs=['net_vhost0,iface=vhost-net,queues=1,client=0']) command_line_client = self.path + eal_param + " -- -i --nb-cores=1 --txd=1024 --rxd=1024" @@ -330,7 +331,7 @@ class TestLoopbackPortRestart(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, "#") self.close_all_session() time.sleep(2) -- 2.7.4