From patchwork Tue Dec 27 07:56:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Weiyuan Li X-Patchwork-Id: 121406 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 4C914A04FD; Tue, 27 Dec 2022 08:56:54 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C4022410FC; Tue, 27 Dec 2022 08:56:53 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id C01A840E2D for ; Tue, 27 Dec 2022 08:56:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672127811; x=1703663811; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=4S28AEEcQfQmItkRdQU7KpU38p6dS6ub24t+ya9DoO8=; b=H6LF7Sy989IBmi1xmLoEyhshR19FMLCpXnocxYRv9kF2tK9MiR6pkNMf PatYXXvzJRNc/v2s1jt8Kuzvk1PguDE9j7NxhECob3UPC6eHSITYs0ZVP 8lt2wpHUrVTeO2rXCt3JgpJzXBIL7X+xo8q3A9TJk4DTXQ8CqmfDaQkoT Y3Ej0qUR65tx6WtdEXVMKweaEdR0Z3bmvc0/2AyLEkHHAe34p4HMx60j3 A3qv8EQW3cXKU5jRKexfE60vHh/dwinLXeyXNrPUYQJEjYN/LVfMHlegb 4HpS9Maprj389gMsL5r238NVkj32AmVpKRNK0LKYbMselN4KZyEaFMG4f w==; X-IronPort-AV: E=McAfee;i="6500,9779,10572"; a="301022548" X-IronPort-AV: E=Sophos;i="5.96,277,1665471600"; d="scan'208";a="301022548" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Dec 2022 23:56:50 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10572"; a="602979115" X-IronPort-AV: E=Sophos;i="5.96,277,1665471600"; d="scan'208";a="602979115" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Dec 2022 23:56:49 -0800 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V1] tests/multiprocess_iavf: the optimization script sorts the result check list Date: Tue, 27 Dec 2022 15:56:51 +0800 Message-Id: <20221227075651.15266-1-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 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 The optimization script sorts the results that match the regular. Signed-off-by: Weiyuan Li --- tests/TestSuite_multiprocess_iavf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/TestSuite_multiprocess_iavf.py b/tests/TestSuite_multiprocess_iavf.py index bb8e0c98..10c5a74d 100644 --- a/tests/TestSuite_multiprocess_iavf.py +++ b/tests/TestSuite_multiprocess_iavf.py @@ -1068,6 +1068,7 @@ class TestMultiprocessIavf(TestCase): r"Port \d+\s+-\s+rx:\s+(?P\d+)\s+tx:.*PORTS", out, re.DOTALL ) rx_num = re.findall(r"Client\s+\d\s+-\s+rx:\s+(\d+)", res.group(0)) + rx_num.sort(reverse=True) for i in range(proc_num): self.verify( int(rx_num[i]) > 0,