From patchwork Wed Sep 16 11:35:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu Jiang X-Patchwork-Id: 77897 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id B3299A04C7; Wed, 16 Sep 2020 13:33:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A0BD11C1F8; Wed, 16 Sep 2020 13:33:37 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 408F71C1E1 for ; Wed, 16 Sep 2020 13:33:35 +0200 (CEST) IronPort-SDR: Ih5psSID9+4uPO1T3M+OFIazwTGz2Z6Jf0NcFRdm4lie8oyrkNgIo3iPeDH/1E7RRNkDzJICWi tmhtvNhPdtXg== X-IronPort-AV: E=McAfee;i="6000,8403,9745"; a="147131562" X-IronPort-AV: E=Sophos;i="5.76,432,1592895600"; d="scan'208";a="147131562" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2020 04:33:33 -0700 IronPort-SDR: su6XF5Pb6uR5dyRUnDlE3n6sWzNLx7QA/7Al5el3gwdW64AEaT1P80YO+XjmOisv/NH9IhHDOR Y+TQ2p/Gftog== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,432,1592895600"; d="scan'208";a="409526250" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by fmsmga001.fm.intel.com with ESMTP; 16 Sep 2020 04:33:32 -0700 From: JiangYuX To: dts@dpdk.org Cc: JiangYu Date: Wed, 16 Sep 2020 19:35:18 +0800 Message-Id: <20200916113518.25704-1-yux.jiang@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/vhost_pmd_xstats: support meson build using apps_name 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 update killall apps_name Signed-off-by: JiangYu Tested-by: Jiang, YuX --- 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