From patchwork Tue Sep 1 18:40:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 76203 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 13487A04AC; Tue, 1 Sep 2020 12:43:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C749C1515; Tue, 1 Sep 2020 12:43:18 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 36E5D137D for ; Tue, 1 Sep 2020 12:43:16 +0200 (CEST) IronPort-SDR: Xz/m4i7Tm2XQGBPyrqf7sz2uWAEXn8RcHbVH0XAAizLcbkl573BdSYBZsOKGbRV+Vbl5ymDv+L tt6IylkItgGA== X-IronPort-AV: E=McAfee;i="6000,8403,9730"; a="221370696" X-IronPort-AV: E=Sophos;i="5.76,378,1592895600"; d="scan'208";a="221370696" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2020 03:43:15 -0700 IronPort-SDR: TH9DKVVEmfqFWGmdaJLNgAU8c5ftHY3cRZI3XEdI/gO0eJAU5XCzMfc5ENNBf47l3XNSYW1Bcd O7CLIjJZkHIA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,378,1592895600"; d="scan'208";a="314687086" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by orsmga002.jf.intel.com with ESMTP; 01 Sep 2020 03:43:14 -0700 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Tue, 1 Sep 2020 18:40:45 +0000 Message-Id: <20200901184045.22383-1-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V2] tests/TestSuite_vmdq_dcb: set dpdk config before build by meson and use api to get app 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" set dpdk config before build by meson and use api to get app name Signed-off-by: lingwei --- tests/TestSuite_vmdq_dcb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_vmdq_dcb.py b/tests/TestSuite_vmdq_dcb.py index 70d3dc4..d202441 100644 --- a/tests/TestSuite_vmdq_dcb.py +++ b/tests/TestSuite_vmdq_dcb.py @@ -100,6 +100,7 @@ class TestVmdqDcb(TestCase): else: self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=%s/CONFIG_RTE_LIBRTE_I40E_" "QUEUE_NUM_PER_VM=%s/' ./config/common_base" % (vm_num, nb_queue_per_vm), "#", 20) + self.dut.set_build_options({'RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM': nb_queue_per_vm}) self.dut.build_install_dpdk(self.target) def start_application(self, npools, ntcs): @@ -159,7 +160,8 @@ class TestVmdqDcb(TestCase): def get_vmdq_stats(self): vmdq_dcb_session = self.dut.new_session() - vmdq_dcb_session.send_expect("kill -s SIGHUP `pgrep -fl vmdq_dcb_app | awk '{print $1}'`", "#", 20) + app_name = self.dut.apps_name['vmdq_dcb'].split('/')[-1] + vmdq_dcb_session.send_expect("kill -s SIGHUP `pgrep -fl %s | awk '{print $1}'`" % app_name, "#", 20) out = self.dut.get_session_output() self.logger.info(out) return out