From patchwork Mon Apr 10 16:22:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 125874 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 B605A4290F; Mon, 10 Apr 2023 10:06:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B17BA40DDC; Mon, 10 Apr 2023 10:06:11 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id B1E8740A81 for ; Mon, 10 Apr 2023 10:06:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681113969; x=1712649969; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=VT2rWDcOXbySAgBUMRcG2da3IoeclKEodheZYIk7I3Y=; b=IPN/U8/FbCdWKxAM9+ysmh0ZG6uVf0/LmxciycLbLmiDoIE4Ij82ivNI m0ocqDwb52GZNxNG6pHmQYfCTGoT5dTVkSELioPs35HnQPrEFHIN1uCAy Zr8Ky0nOquRJjMGXjbhFqecZeSOJr0jytMT7dn0925Bc1Kc3CHH7Jm/A+ pWD2ZB+fEtFaBEoMRnpco2oPWNq2OvhiYT/uzsWXjrs/FADbzOG6TPok6 D2jb8e1FDZW7NKrxy6IZ3f5o789Oo/ljwDhMvmnZ8gtbR2F2BbMy3Vmpz kU/qrKISKCvkvUgyygXiXZxoUzJyHYEyfwaqPWk08AGC/cihJELQ8vhfM w==; X-IronPort-AV: E=McAfee;i="6600,9927,10675"; a="323673201" X-IronPort-AV: E=Sophos;i="5.98,333,1673942400"; d="scan'208";a="323673201" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2023 01:06:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10675"; a="688192867" X-IronPort-AV: E=Sophos;i="5.98,333,1673942400"; d="scan'208";a="688192867" Received: from unknown (HELO localhost.localdomain) ([10.239.252.96]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2023 01:06:04 -0700 From: Jiale Song To: dts@dpdk.org Cc: Jiale Song Subject: [dts] [PATCH V1] tests/vf_pmd_stacked_bonded: optimize script Date: Mon, 10 Apr 2023 16:22:27 +0000 Message-Id: <20230410162227.833948-1-songx.jiale@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 some nic do not have "link-down-on-close" flags, but they also support synchronizing the status of the vf port and the port of the peer port. Signed-off-by: Jiale Song --- tests/TestSuite_vf_pmd_stacked_bonded.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_vf_pmd_stacked_bonded.py b/tests/TestSuite_vf_pmd_stacked_bonded.py index 5765481e..615e9517 100644 --- a/tests/TestSuite_vf_pmd_stacked_bonded.py +++ b/tests/TestSuite_vf_pmd_stacked_bonded.py @@ -566,7 +566,10 @@ class TestVFPmdStackedBonded(TestCase): """ Test Case: active-backup stacked bonded rx traffic with slave down """ - self.verify(self.default_stats, "tester port not support '%s'" % self.flag) + if not self.default_stats: + self.logger.warning( + "Please ensure that the link status of the vf port can be synchronized with the peer port!!!" + ) self.backup_check_traffic_with_slave_down() def test_mode_xor_rx(self): @@ -579,7 +582,10 @@ class TestVFPmdStackedBonded(TestCase): """ Test Case: balance-xor stacked bonded rx traffic with slave down """ - self.verify(self.default_stats, "tester port not support '%s'" % self.flag) + if not self.default_stats: + self.logger.warning( + "Please ensure that the link status of the vf port can be synchronized with the peer port!!!" + ) self.xor_check_stacked_rx_one_slave_down() def tear_down(self):