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 345F142C67; Fri, 9 Jun 2023 03:58:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF4AF41144; Fri, 9 Jun 2023 03:58:07 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 808EE40A7D for ; Fri, 9 Jun 2023 03:58:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686275886; x=1717811886; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=uzSD+gQCs+HejYa5V/WYJEuZqW5JCI3fuiJmPeRdss8=; b=cujWWH3TqHOVW7iSWIJEa7FKUYjD1hb0EvTNmxGWiypix1Y3MatsN4h4 eDezVgwPqmrs9JQ1A2Rot6AjKsixUsoL+dpjNXtL0sXYDktdpgdw6hV/p 9AVeKjbsTjCDuRv57VOeiT+dMjLjaow7UpowXOrWf9MUvA8afP5OFaf+c ZPj4x2Jl+jzmTvdZ145jTT30Oytzqrs7qTYYnD44FeoZNJxeYD515PLW2 +bXrtA2ncJ2Pn7HYJoFD7ioAAyelL19+DzV5eDM9NF3KZfDsL91yYjYhM 5KfPWWKkIBxZlkRaQEQE8zQ8noU3VTN7kDFueLhfF4oR7KOHOsQ/ame3c w==; X-IronPort-AV: E=McAfee;i="6600,9927,10735"; a="337843668" X-IronPort-AV: E=Sophos;i="6.00,228,1681196400"; d="scan'208";a="337843668" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2023 18:58:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10735"; a="713332477" X-IronPort-AV: E=Sophos;i="6.00,228,1681196400"; d="scan'208";a="713332477" Received: from unknown (HELO cvl_100g_103.icx.intel.com) ([10.239.252.93]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2023 18:58:05 -0700 From: Hongbo Li To: dts@dpdk.org Cc: Hongbo Li Subject: [dts][PATCH V1 2/2] tests/iavf_package_driver_error_handle: support eal_param -a to avoid running containers Date: Fri, 9 Jun 2023 18:10:20 +0800 Message-Id: <20230609101020.23747-2-hongbox.li@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230609101020.23747-1-hongbox.li@intel.com> References: <20230609101020.23747-1-hongbox.li@intel.com> 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: Hongbo Li --- tests/TestSuite_iavf_package_driver_error_handle.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_iavf_package_driver_error_handle.py b/tests/TestSuite_iavf_package_driver_error_handle.py index a3e4e9a9..af6560e6 100644 --- a/tests/TestSuite_iavf_package_driver_error_handle.py +++ b/tests/TestSuite_iavf_package_driver_error_handle.py @@ -320,10 +320,14 @@ class Testiavf_package_and_driver_check(TestCase): for port in self.sriov_vfs_port: port.bind_driver("vfio-pci") + self.eal_param_a = "" + for sriov_vf in self.sriov_vfs_port: + self.eal_param_a += " -a {}".format(sriov_vf.pci) - testpmdcmd = ( - self.dut.apps_name["test-pmd"] - + "-l 6-9 -n 4 --file-prefix=vf -- -i --rxq=4 --txq=4 --nb-cores=2" + testpmdcmd = self.dut.apps_name[ + "test-pmd" + ] + "-l 6-9 -n 4 %s --file-prefix=vf -- -i --rxq=4 --txq=4 --nb-cores=2" % ( + self.eal_param_a ) self.dut_testpmd.execute_cmd(testpmdcmd) out = self.dut_testpmd.execute_cmd( -- 2.17.1