From patchwork Tue Sep 22 09:40:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xie, WeiX" X-Patchwork-Id: 78365 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 7BC5BA04E2; Tue, 22 Sep 2020 11:41:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1B65D1DACB; Tue, 22 Sep 2020 11:41:39 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 2A4A81DCEF for ; Tue, 22 Sep 2020 11:41:38 +0200 (CEST) IronPort-SDR: Ld2RpNE7l0sFb/XQzzzeWfcxYkRzvNaX/zpW0VtNU/F74A9SazADNf2P06FucyRACRYQnfDhvz Hz1tDQBzKhXA== X-IronPort-AV: E=McAfee;i="6000,8403,9751"; a="157946957" X-IronPort-AV: E=Sophos;i="5.77,290,1596524400"; d="scan'208";a="157946957" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Sep 2020 02:41:37 -0700 IronPort-SDR: 4/ajTiVGLM5EJmjWjOXNvXd7I4FkJbCIU5mN5LpgCN+rCn1JKj1Ln7knLT4wsU8Vq6suDONdjr 69se0UUJ4Uhw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,290,1596524400"; d="scan'208";a="322160457" Received: from unknown (HELO localhost.localdomain) ([10.240.183.80]) by orsmga002.jf.intel.com with ESMTP; 22 Sep 2020 02:41:35 -0700 From: Xie wei To: dts@dpdk.org Cc: Xie wei Date: Tue, 22 Sep 2020 17:40:00 +0800 Message-Id: <20200922094000.19722-1-weix.xie@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/TestSuite_dcf_lifecycle:get app name to kill testpmd 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" support meson build method, get app name to kill testpmd process. Signed-off-by: Xie wei Tested-by: Xie,WeiX < weix.xie@intel.com> Acked-by: Lihong Ma --- tests/TestSuite_dcf_lifecycle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_dcf_lifecycle.py b/tests/TestSuite_dcf_lifecycle.py index 76c29f89..0923dab0 100644 --- a/tests/TestSuite_dcf_lifecycle.py +++ b/tests/TestSuite_dcf_lifecycle.py @@ -341,7 +341,7 @@ class TestDcfLifeCycle(TestCase): ''' cmd = "ps aux | grep testpmd" self.d_a_con(cmd) - cmd = r"kill -9 `ps -ef | grep testpmd | grep -v grep | grep -v testpmd_vf | awk '{print $2}'`" + cmd = r"kill -9 `ps -ef | grep %s | grep -v grep | grep -v %s | awk '{print $2}'`" % (self.vf_dcf_testpmd.split('/')[-1], self.vf_testpmd2.split('/')[-1]) self.d_a_con(cmd) self.is_vf_dcf_pmd_on = False time.sleep(2)