From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 544FB42B86; Wed, 24 May 2023 05:33:42 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 50FE740ED8; Wed, 24 May 2023 05:33:42 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 541124067E for ; Wed, 24 May 2023 05:33:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684899220; x=1716435220; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CNXGmjvwS5NEvJIgvsNhj1etP4yJsmWbZJmFHHmQFvE=; b=RF5xXem0XtdT7W5DTmdu33b/hb4s1mStEhopGOspk8w1dW2eHZ0RZAhS 4JStEdT7zzVIW5Tcz9i4mpvTRet03tAZynabd8UeSKQAqeCdHqn/AOM2k R9MDu73PcL/yO3v7i7PfaKrg4FFQfuulFtWF5h9QSkDwI1FDX1xb2KPR5 rwn217dQSaTtOLB5xz1927q9DrNEj6U8WrpWOesvBJrcp0WXIT0aePbxL pgQHBujBflyZt+1Xjhgq/5A6HDPqTKj7wUtJTcTH80RQmrs40bTdxSyqx Z8f2lWjkpSpvkAZRw//ja5Y74TZXPzg5EczBV6BWb07qmGj0gLarnzu9x g==; X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="416902739" X-IronPort-AV: E=Sophos;i="6.00,188,1681196400"; d="scan'208";a="416902739" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2023 20:33:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="681688888" X-IronPort-AV: E=Sophos;i="6.00,188,1681196400"; d="scan'208";a="681688888" Received: from unknown (HELO localhost.localdomain) ([10.239.252.196]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2023 20:33:34 -0700 From: Yu Jiang To: lijuan.tu@intel.com, dts@dpdk.org Cc: Yu Jiang Subject: [dts][PATCH V1 2/4] tests/ethtool_stats: support eal_param -a to avoid running containers conflict Date: Wed, 24 May 2023 11:33:26 +0800 Message-Id: <20230524033328.2146223-3-yux.jiang@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230524033328.2146223-1-yux.jiang@intel.com> References: <20230524033328.2146223-1-yux.jiang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 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 Support eal_param -a to avoid running containers conflict Signed-off-by: Yu Jiang --- tests/TestSuite_ethtool_stats.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_ethtool_stats.py b/tests/TestSuite_ethtool_stats.py index a148b7a9..9632c7e9 100644 --- a/tests/TestSuite_ethtool_stats.py +++ b/tests/TestSuite_ethtool_stats.py @@ -128,12 +128,10 @@ class TestEthtoolStats(TestCase): def init_proc_info(self): ports_count = len(self.dut_ports) ports_mask = reduce(lambda x, y: x | y, [0x1 << x for x in range(ports_count)]) - app_name = self.dut.apps_name["proc-info"].split("/")[-1] + app_name = self.dut.apps_name["proc-info"] self.query_tool = os.path.join( self.target_dir, - self.target, - "app", - app_name + "--file-prefix=%s" % self.prefix, + app_name + self.eal_param_a + " --file-prefix=%s" % self.prefix, ) self.dpdk_proc_info = "%s -v -- -p %s" % (self.query_tool, ports_mask) @@ -458,6 +456,10 @@ class TestEthtoolStats(TestCase): self.dut_ports = self.dut.get_ports(self.nic) self.verify(len(self.dut_ports) >= 1, "Insufficient ports") self.prefix = "dpdk_" + self.dut.prefix_subfix + self.dut_ports = self.dut.get_ports(self.nic) + self.eal_param_a = "" + for i in self.dut_ports: + self.eal_param_a += " -a {}".format(self.dut.ports_info[i]["pci"]) self.preset_test_environment() def set_up(self): -- 2.25.1