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 098B041C27; Tue, 7 Feb 2023 03:53:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E5D1C40ED9; Tue, 7 Feb 2023 03:53:23 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 95735406A2 for ; Tue, 7 Feb 2023 03:53:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675738401; x=1707274401; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=i+jm1pF1OuuruLZ1RxSswwAoKg7pN1yhON1IaiwQz2Y=; b=LbVhG4hpQ4e47k0xpTa9isLsKubOxLnoswIdt+Cg76BaJNJPfj+U+nzx jEvdJqUsVsBKGLy4hOMchbgGYguOu9bIT+D2DU1YhoXTWSKXmVJoqQxOL NOpNQLmLRbFpbHFKHT7FSsD45BlIS9HOKTKHUSbBU1xf7gBvumHjqRMIm ZSFMy/k6eJUY+FpierqAWIjcFXzv/7iue4Aof7C8EB1lGiFP9tR4Y8OEn Ib2+edlXuVkud/6qKbOnTGbU4TJPkxE4PZUcNuki8bDvTZEBt3UMEpOFx yx7F02/Qw3y360ASGhZ9lhSBXqr3l/UXj/zqXEb6oeen6zMMR0rSwykh7 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10613"; a="317404794" X-IronPort-AV: E=Sophos;i="5.97,278,1669104000"; d="scan'208";a="317404794" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2023 18:53:20 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10613"; a="697095965" X-IronPort-AV: E=Sophos;i="5.97,278,1669104000"; d="scan'208";a="697095965" Received: from unknown (HELO localhost.localdomain) ([10.239.252.20]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2023 18:53:19 -0800 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V1] tests/large_vf: modify script to adapt to changes in dpdk Date: Tue, 7 Feb 2023 10:50:41 +0000 Message-Id: <20230207105041.868387-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.25.1 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 after dpdk is modified, if all ports fail to start, dpdk still allows testpmd to enter the command line, instead of unconditionally terminating testpmd. According to dpdk commit 7e40372522c("app/testpmd: fix interactive mode with no ports"). Signed-off-by: Song Jiale --- tests/TestSuite_large_vf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_large_vf.py b/tests/TestSuite_large_vf.py index 4e2ff1d6..bfc7ca08 100644 --- a/tests/TestSuite_large_vf.py +++ b/tests/TestSuite_large_vf.py @@ -124,7 +124,7 @@ exceed_256_queues = { more_than_3_vfs_256_queues = { "name": "test_more_than_3_vfs_256_queues", "param": "--txq=256 --rxq=256", - "check_param": "Cause: Start ports failed", + "check_param": "Start ports failed", } max_vfs_256_queues_3 = [ @@ -373,11 +373,12 @@ class TestLargeVf(TestCase): + "-- -i " + tv["param"] ) - out = self.pmd_output.execute_cmd(cmd, "#") + out = self.pmd_output.execute_cmd(cmd, "testpmd> ") self.verify( tv["check_param"] in out, "fail: testpmd start successfully", ) + self.pmd_output.quit() self.pmdout_list[0].execute_cmd("quit", "# ") break else: -- 2.25.1