From patchwork Wed Oct 19 02:36:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 118505 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 A3BD9A0572; Wed, 19 Oct 2022 04:32:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 799FA4069C; Wed, 19 Oct 2022 04:32:09 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 62DD240041 for ; Wed, 19 Oct 2022 04:32:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666146728; x=1697682728; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=pHfH/n/pZjgnNDyz3n1qTeStSCyf9LGTlslLHJ7uqcc=; b=GrgkIhpN6273O4b883u/Mv3kP/JYznohP7HbtA2OE+m2tpVEfDNmZ2kc 7Jsf6rdhBQ6lEmMBbGjsAEnUTjU1xiD0AaJXDfPlxKHqj5LwEQ6FsvQuk mN2YaFqr4zcDmujAcd0t31zQTDFWpirG88YSsAHvz+wkAFbbJhzaVo6mL XaRRO87sCk4W0o5mIdbPhorogI+ysbUyTT2JNEetIv86UbRXwvLZnhhNI LpH6cknxZ/S+zK0IoEHQcewl79yYuFKqyJBX5KTPqjehgbXQBdC1/JSQs KYSFGcjsDQYkEjg7Ch07hlnTjbO267XNl+qq+yxtHPEK8m1ThSViScMxN Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="368339833" X-IronPort-AV: E=Sophos;i="5.95,194,1661842800"; d="scan'208";a="368339833" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2022 19:32:06 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10504"; a="697828249" X-IronPort-AV: E=Sophos;i="5.95,194,1661842800"; d="scan'208";a="697828249" Received: from unknown (HELO dpdk-VF-dut247..) ([10.239.252.247]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2022 19:32:05 -0700 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V1] tests/vf_offload: the optimization script sorts the result check list Date: Wed, 19 Oct 2022 10:36:25 +0800 Message-Id: <20221019023625.52696-1-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.34.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 On some test platforms, the list of results after tso fragment capture is unordered, and sorting needs to be added. Signed-off-by: Weiyuan Li Tested-by: Lingli Chen --- tests/TestSuite_vf_offload.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py index c70b24f4..75c75f05 100644 --- a/tests/TestSuite_vf_offload.py +++ b/tests/TestSuite_vf_offload.py @@ -584,6 +584,7 @@ class TestVfOffload(TestCase): rx_stats = self.number_of_packets(rx_interface) tx_stats = self.number_of_packets(tx_interface) tx_outlist = self.number_of_bytes(rx_interface) + tx_outlist.sort(reverse=True) self.logger.info(tx_outlist) if loading_size <= 800: self.verify( @@ -618,6 +619,7 @@ class TestVfOffload(TestCase): rx_stats = self.number_of_packets(rx_interface) tx_stats = self.number_of_packets(tx_interface) tx_outlist = self.number_of_bytes(rx_interface) + tx_outlist.sort(reverse=True) self.logger.info(tx_outlist) if loading_size <= 800: self.verify(