From patchwork Wed May 24 03:33:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu Jiang X-Patchwork-Id: 127272 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6D62F42B87; Wed, 24 May 2023 05:33:41 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 26BEC4282D; Wed, 24 May 2023 05:33:41 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id BA1954067E for ; Wed, 24 May 2023 05:33:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1684899219; x=1716435219; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BzGU8JdLG4qSsx7lFo3sBtKi0IGVCtCwtrt4axEnxHQ=; b=F2Tbu4SkF6IZBmW5GOlI+JwLzkOdefzAHw991OAQey5ekAVWfwGhIrDg H7Gh3Og3TjvtdaKq7O6pRaUc3BtXN7kfG4awO4moRs7TfrNkAKF9Z6GuA tYRw5w8wrEw1f1ezyrM7SSZ1XQr1culVJjm4MGtIDD1kT5ohKeL84i70Q 5HNibrlYu1xvNXy0TANWbh6jtQ3G1Nm9B1CbG+aPu8ewOCJ5fKqBX6dqO U1bbcMfbRddK8D70fNGWWfXW8vtbZC+LbeymjqnOx55SO+xDBuSqms6eE +56cp2Byo1CUrkY7fC3705XVPx+1tl5MvbAftutFKPKn0+G9cVARb6xrN Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="416902734" X-IronPort-AV: E=Sophos;i="6.00,188,1681196400"; d="scan'208";a="416902734" 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:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="681688879" X-IronPort-AV: E=Sophos;i="6.00,188,1681196400"; d="scan'208";a="681688879" 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:33 -0700 From: Yu Jiang To: lijuan.tu@intel.com, dts@dpdk.org Cc: Yu Jiang Subject: [dts][PATCH V1 1/4] tests/coremask: support eal_param -a to avoid running containers conflict Date: Wed, 24 May 2023 11:33:25 +0800 Message-Id: <20230524033328.2146223-2-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 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_coremask.py | 37 ++++++++++++++++++++++++++++++------- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/tests/TestSuite_coremask.py b/tests/TestSuite_coremask.py index 8e95e998..210cd1f7 100644 --- a/tests/TestSuite_coremask.py +++ b/tests/TestSuite_coremask.py @@ -18,7 +18,7 @@ from framework.test_case import TestCase # Test class. # -command_line = """./%s -c %s -n %d --log-level="lib.eal,8" """ +command_line = """./%s %s -c %s -n %d --log-level="lib.eal,8" """ class TestCoremask(TestCase): @@ -43,6 +43,10 @@ class TestCoremask(TestCase): self.all_cores = self.dut.get_core_list("all", socket=0) else: self.all_cores = self.dut.get_core_list("all") + 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"]) def set_up(self): """ @@ -58,8 +62,12 @@ class TestCoremask(TestCase): for core in self.all_cores: core_mask = utils.create_mask([core]) - - command = command_line % (self.app_test_path, core_mask, self.mem_channel) + command = command_line % ( + self.app_test_path, + self.eal_param_a, + core_mask, + self.mem_channel, + ) out = self.dut.send_expect(command, "RTE>>", 10) self.verify( @@ -82,7 +90,12 @@ class TestCoremask(TestCase): first_core = self.all_cores[0] - command = command_line % (self.app_test_path, core_mask, self.mem_channel) + command = command_line % ( + self.app_test_path, + self.eal_param_a, + core_mask, + self.mem_channel, + ) out = self.dut.send_expect(command, "RTE>>", 10) self.verify( @@ -111,13 +124,18 @@ class TestCoremask(TestCase): """ Check coremask parsing for more cores than available. """ - command_line = """./%s -c %s -n %d --log-level="lib.eal,8" 2>&1 |tee out""" + command_line = """./%s %s -c %s -n %d --log-level="lib.eal,8" 2>&1 |tee out""" # Create a extremely big coremask big_coremask = "0x" for _ in range(0, len(self.all_cores) + 1, 4): big_coremask += "f" - command = command_line % (self.app_test_path, big_coremask, self.mem_channel) + command = command_line % ( + self.app_test_path, + self.eal_param_a, + big_coremask, + self.mem_channel, + ) try: out = self.dut.send_expect(command, "RTE>>", 10) except: @@ -165,7 +183,12 @@ class TestCoremask(TestCase): for coremask in wrong_coremasks: - command = command_line % (self.app_test_path, coremask, self.mem_channel) + command = command_line % ( + self.app_test_path, + self.eal_param_a, + coremask, + self.mem_channel, + ) try: out = self.dut.send_expect(command, "# ", 5) self.verify( From patchwork Wed May 24 03:33:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu Jiang X-Patchwork-Id: 127273 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org 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 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): From patchwork Wed May 24 03:33:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu Jiang X-Patchwork-Id: 127274 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id ADA7742B87; 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 6FD4642D35; 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 6E9B140ED8 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=JW+fJs91UwcsLeSU8eH9n7dSkt0BHJ1+Mk7J5btkIS8=; b=eBWdC8AuSPhjsB1q9kNomhPYM6qoTFmgfEspqH79HESf21h+jPfzv9+K /6FhnZCenzB52rUMexFhtZBtNCB/TAx1Qu3ampuhtgUi1NfRWiUbRyWCx NxfvO27kFEbOKF2YdIQEYdle+nVrp/NdzvPoMqSGmxJE1T71B9CG/f9SM O/fLqlZpUjqZkijmFF2uT31z7knzn1keW2H13C6mJhqugrslS29osdPyk k7ryfuCKHenxDyXg+ycFYEQLk+wTJaIsu+R9wcyBR3CWZ2tWE8eL6Oq0f AYxp+dU0rHFL85Enlgy6DiPEEZnQ0FJwfKT57KbRZRmBWpfCG2zu8P74a w==; X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="416902750" X-IronPort-AV: E=Sophos;i="6.00,188,1681196400"; d="scan'208";a="416902750" 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:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="681688921" X-IronPort-AV: E=Sophos;i="6.00,188,1681196400"; d="scan'208";a="681688921" 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:36 -0700 From: Yu Jiang To: lijuan.tu@intel.com, dts@dpdk.org Cc: Yu Jiang Subject: [dts][PATCH V1 3/4] tests/external_mempool_handler: support eal_param -a to avoid running containers conflict Date: Wed, 24 May 2023 11:33:27 +0800 Message-Id: <20230524033328.2146223-4-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 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_external_mempool_handler.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_external_mempool_handler.py b/tests/TestSuite_external_mempool_handler.py index 58971e31..c214aae6 100644 --- a/tests/TestSuite_external_mempool_handler.py +++ b/tests/TestSuite_external_mempool_handler.py @@ -12,7 +12,7 @@ from framework.pmd_output import PmdOutput from framework.test_case import TestCase -class TestExternalMempool(TestCase): +class TestExternalMempoolHandler(TestCase): def set_up_all(self): """ Run at the start of each test suite. @@ -20,7 +20,9 @@ class TestExternalMempool(TestCase): self.dut_ports = self.dut.get_ports() self.verify(len(self.dut_ports) >= 2, "Not enough ports") - + self.eal_param_a = "" + for i in self.dut_ports: + self.eal_param_a += " -a {}".format(self.dut.ports_info[i]["pci"]) self.pmdout = PmdOutput(self.dut) self.app_test_path = self.dut.apps_name["test"] @@ -33,7 +35,8 @@ class TestExternalMempool(TestCase): def verify_unit_func(self, ops=""): self.dut.send_expect( - "./%s -n 4 -c f --mbuf-pool-ops-name %s" % (self.app_test_path, ops), + "./%s%s -n 4 -c f --mbuf-pool-ops-name %s" + % (self.app_test_path, self.eal_param_a, ops), "R.*T.*E.*>.*>", 60, ) @@ -42,7 +45,11 @@ class TestExternalMempool(TestCase): self.verify("Test OK" in out, "Mempool autotest failed") def verify_unit_perf(self): - self.dut.send_expect("./%s -n 4 -c f" % self.app_test_path, "R.*T.*E.*>.*>", 60) + self.dut.send_expect( + "./%s%s -n 4 -c f" % (self.app_test_path, self.eal_param_a), + "R.*T.*E.*>.*>", + 60, + ) out = self.dut.send_expect("mempool_perf_autotest", "RTE>>", 1200) self.dut.send_expect("quit", "# ") # may need to compare performance From patchwork Wed May 24 03:33:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yu Jiang X-Patchwork-Id: 127275 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id F276542B88; 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 8DB5342D3A; 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 E33374067E 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=1684899221; x=1716435221; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KtrJXYtXPDVqs1R4ndZVgT/mGzbkTzSMOj+BpIrAdmA=; b=lEyq6YhMYEhHqu+imlagiookWClkXAoMsVHqQoVZ7VxWFXcDENBtaeIE bAQsI17mPEzS8flo629+Vh/QOI90jaCOTW87zxmca5qJrULO5FSw0ohCy Kpc4v18Q3UBLzuBwXsgADUiCfK5DPOOqQO/OG0uj3HAQT02Ctg3IWZxSb fqWNdStEDM7s5hJYXwpTmDKD0R1vZYeEQsiJCrd9hK44C5ZMWv2AoR/em 8GyunJDCXkb9zKsnFpu46moMrA1Z6OLvpu4t44nZvwQqCNDYWp+kAUDMF 54v1RetAI24J/XlO5OXjV8ZFhjDPsgtG+LuLWUYSDxVcujNVvVrazMRIQ g==; X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="416902752" X-IronPort-AV: E=Sophos;i="6.00,188,1681196400"; d="scan'208";a="416902752" 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:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10719"; a="681688942" X-IronPort-AV: E=Sophos;i="6.00,188,1681196400"; d="scan'208";a="681688942" 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:38 -0700 From: Yu Jiang To: lijuan.tu@intel.com, dts@dpdk.org Cc: Yu Jiang Subject: [dts][PATCH V1 4/4] tests/multiple_pthread: support eal_param -a to avoid running containers conflict Date: Wed, 24 May 2023 11:33:28 +0800 Message-Id: <20230524033328.2146223-5-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 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 Reviewed-by: Lijuan Tu --- tests/TestSuite_multiple_pthread.py | 46 +++++++++++++++++------------ 1 file changed, 27 insertions(+), 19 deletions(-) diff --git a/tests/TestSuite_multiple_pthread.py b/tests/TestSuite_multiple_pthread.py index 253d6a4a..6c15077f 100644 --- a/tests/TestSuite_multiple_pthread.py +++ b/tests/TestSuite_multiple_pthread.py @@ -23,6 +23,9 @@ class TestMultiplePthread(TestCase): "Test suite currently only supports Linux platforms", ) 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"]) global valports valports = [_ for _ in self.dut_ports if self.tester.get_local_port(_) != -1] # Verify that enough ports are available @@ -110,14 +113,19 @@ class TestMultiplePthread(TestCase): # Allocate enough streams based on the number of CPUs if len(cpu_list) > 2: queue_num = len(cpu_list) - cmdline = './%s --lcores="%s" -n 4 -- -i --txq=%d --rxq=%d' % ( + cmdline = './%s%s --lcores="%s" -n 4 -- -i --txq=%d --rxq=%d' % ( self.path, + self.eal_param_a, lcores, queue_num, queue_num, ) else: - cmdline = './%s --lcores="%s" -n 4 -- -i' % (self.path, lcores) + cmdline = './%s%s --lcores="%s" -n 4 -- -i' % ( + self.path, + self.eal_param_a, + lcores, + ) # start application self.dut.send_expect(cmdline, "testpmd", 60) @@ -229,26 +237,26 @@ class TestMultiplePthread(TestCase): Test an random parameter from an defined table which has a couple of invalid lcore parameters. """ cmdline_list = [ - "./%s --lcores='(0-,4-7)@(4,5)' -n 4 -- -i", - "./%s --lcores='(-1,4-7)@(4,5)' -n 4 -- -i", - "./%s --lcores='(0,4-7-9)@(4,5)' -n 4 -- -i", - "./%s --lcores='(0,abcd)@(4,5)' -n 4 -- -i", - "./%s --lcores='(0,4-7)@(1-,5)' -n 4 -- -i", - "./%s --lcores='(0,4-7)@(-1,5)' -n 4 -- -i", - "./%s --lcores='(0,4-7)@(4,5-8-9)' -n 4 -- -i", - "./%s --lcores='(0,4-7)@(abc,5)' -n 4 -- -i", - "./%s --lcores='(0,4-7)@(4,xyz)' -n 4 -- -i", - "./%s --lcores='(0,4-7)=(8,9)' -n 4 -- -i", - "./%s --lcores='2,3 at 4,(0-1,,4))' -n 4 -- -i", - "./%s --lcores='[0-,4-7]@(4,5)' -n 4 -- -i", - "./%s --lcores='(0-,4-7)@[4,5]' -n 4 -- -i", - "./%s --lcores='3-4 at 3,2 at 5-6' -n 4 -- -i", - "./%s --lcores='2,,3''2--3' -n 4 -- -i", - "./%s --lcores='2,,,3''2--3' -n 4 -- -i", + "./%s%s --lcores='(0-,4-7)@(4,5)' -n 4 -- -i", + "./%s%s --lcores='(-1,4-7)@(4,5)' -n 4 -- -i", + "./%s%s --lcores='(0,4-7-9)@(4,5)' -n 4 -- -i", + "./%s%s --lcores='(0,abcd)@(4,5)' -n 4 -- -i", + "./%s%s --lcores='(0,4-7)@(1-,5)' -n 4 -- -i", + "./%s%s --lcores='(0,4-7)@(-1,5)' -n 4 -- -i", + "./%s%s --lcores='(0,4-7)@(4,5-8-9)' -n 4 -- -i", + "./%s%s --lcores='(0,4-7)@(abc,5)' -n 4 -- -i", + "./%s%s --lcores='(0,4-7)@(4,xyz)' -n 4 -- -i", + "./%s%s --lcores='(0,4-7)=(8,9)' -n 4 -- -i", + "./%s%s --lcores='2,3 at 4,(0-1,,4))' -n 4 -- -i", + "./%s%s --lcores='[0-,4-7]@(4,5)' -n 4 -- -i", + "./%s%s --lcores='(0-,4-7)@[4,5]' -n 4 -- -i", + "./%s%s --lcores='3-4 at 3,2 at 5-6' -n 4 -- -i", + "./%s%s --lcores='2,,3''2--3' -n 4 -- -i", + "./%s%s --lcores='2,,,3''2--3' -n 4 -- -i", ] cmdline = random.sample(cmdline_list, 1) - out = self.dut.send_expect(cmdline[0] % self.path, "#", 60) + out = self.dut.send_expect(cmdline[0] % (self.path, self.eal_param_a), "#", 60) self.verify("invalid parameter" in out, "it's a valid parameter") def tear_down(self):