From patchwork Fri Feb 17 10:46:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ling, WeiX" X-Patchwork-Id: 124121 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 9211F41CBF; Fri, 17 Feb 2023 12:00:06 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A4C641611; Fri, 17 Feb 2023 12:00:06 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 6265A40EE1 for ; Fri, 17 Feb 2023 12:00:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676631604; x=1708167604; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6FZgug0hyR0UDM0a5nWbajk851LBLOy4kOhuX8stGCU=; b=nFJIOGcGg86MeQfNk3rWIzr5gfr0cx2beXi/JBG9qb6bw8jF8OuO0JGE EpNDj5ik7qu+CRGTIa/OCj+Xbdh3+ISUVVauNbRFh7M5NUvjVKEQji0f/ RFtnnRWsrq3DivGVXfnY4RRs/UfMn2NTYH7cJmwk7HOgso6I82U0H1dXD Q98an8KxZr6KCGsUqHQx0tZ3WGM8iVut9vhl+7BzqKf+1VBsD2u2C8S4B Js2Gx7yNnx4O2p3AyaPV7INWF6/2pHfdz4bKVg+FxgsufeKA5jU0DRb53 Y2ck0THN4tqBu8JfqbOp8Cv1idVr7DchmgGCq1P4/8KhMRH9lwdoyRp9T w==; X-IronPort-AV: E=McAfee;i="6500,9779,10623"; a="312328328" X-IronPort-AV: E=Sophos;i="5.97,304,1669104000"; d="scan'208";a="312328328" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2023 03:00:03 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10623"; a="702939140" X-IronPort-AV: E=Sophos;i="5.97,304,1669104000"; d="scan'208";a="702939140" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2023 03:00:01 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1] tests/vhost_virtio_pmd_interrupt: fix the code unuse issue Date: Fri, 17 Feb 2023 18:46:27 +0800 Message-Id: <20230217104627.1999696-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 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 Fix the code unuse issue, if unuse the core_config parameter, it will use all the cores of the socket. Signed-off-by: Wei Ling --- tests/TestSuite_vhost_virtio_pmd_interrupt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_vhost_virtio_pmd_interrupt.py b/tests/TestSuite_vhost_virtio_pmd_interrupt.py index a1f3e8dd..dd7ff491 100644 --- a/tests/TestSuite_vhost_virtio_pmd_interrupt.py +++ b/tests/TestSuite_vhost_virtio_pmd_interrupt.py @@ -70,7 +70,9 @@ class TestVhostVirtioPmdInterrupt(TestCase): self.cores_num >= (self.nb_cores + 1), "There has not enough cores to running case: %s" % self.running_case, ) - self.core_list = self.dut.get_core_list("all", socket=self.ports_socket) + self.core_list = self.dut.get_core_list( + config=core_config, socket=self.ports_socket + ) def prepare_vm_env(self): """