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 97AADA04B5; Wed, 2 Sep 2020 08:17:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 83C751C069; Wed, 2 Sep 2020 08:17:44 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id B61C6E07 for ; Wed, 2 Sep 2020 08:17:43 +0200 (CEST) IronPort-SDR: GWrWOrhnrnNb6X85ohi5eSdeWqVTIsONJvyza5gZuZj/Mq6txcIwGWnR6gWa988vZ9HodmeYjW jc8QAZ6DxUHA== X-IronPort-AV: E=McAfee;i="6000,8403,9731"; a="218877824" X-IronPort-AV: E=Sophos;i="5.76,381,1592895600"; d="scan'208";a="218877824" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2020 23:17:41 -0700 IronPort-SDR: OUM969gUJp02DY5nnpsL1cZsqWY4pPMOalFXqYp7yvCP/1tEqTrPtiPBhYbnCH6RbS7p6KHflc tD3aFFo++XbQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,381,1592895600"; d="scan'208";a="333992340" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga002.fm.intel.com with ESMTP; 01 Sep 2020 23:17:40 -0700 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Wed, 2 Sep 2020 14:14:55 +0000 Message-Id: <20200902141500.92740-2-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200902141500.92740-1-weix.ling@intel.com> References: <20200902141500.92740-1-weix.ling@intel.com> Subject: [dts] [dts 1/6] 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 -- 2.17.1