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 3302A41BA5; Thu, 2 Feb 2023 03:59:28 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2B0DA42D16; Thu, 2 Feb 2023 03:59:28 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 19CE242D0B for ; Thu, 2 Feb 2023 03:59:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675306767; x=1706842767; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wLazkrW3UCXTVhHn30gTJp97lCDulOMiebR9AmvCZ1w=; b=m/r318SiCb1d6B2WpyIC1/8oDJaY1B6SiCvc++ObKQxDjAhlKA1C+8LM ZhGpflBT0e0yPJxsAsHblYu2m67gtnRYNQd+D6Z0HJx8BODqdzXZJ8YfG FY/LoC6RseqI8eghg8Z8GKGqtBQdF5FNOA6d3h+nnf5Uf4+ET5oMtmfL5 UdN0xSkCbFRj3eCnXzubtxCc/T2yx+CPgjXfPrhVztiL94tMXmOwkXGrn sRLZXemZRdAOMl1vYChOv+KWBdL1KMrrytOQ8UcKqecCkhLb7zWwCZ7pB p7Y+DkmMmB1sIUonvXetnWKxO0IqaNXEmgzxTEcAnEWBMTBynREkDtlH8 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10608"; a="326036480" X-IronPort-AV: E=Sophos;i="5.97,266,1669104000"; d="scan'208";a="326036480" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2023 18:59:26 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10608"; a="667136284" X-IronPort-AV: E=Sophos;i="5.97,266,1669104000"; d="scan'208";a="667136284" Received: from unknown (HELO localhost.localdomain) ([10.239.252.248]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Feb 2023 18:59:25 -0800 From: Weiyuan Li To: dts@dpdk.org Cc: Weiyuan Li Subject: [dts][PATCH V1 2/2] tests/rxtx_offload: optimize test steps to adapt test plan Date: Thu, 2 Feb 2023 10:59:27 +0800 Message-Id: <20230202025927.22506-2-weiyuanx.li@intel.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20230202025927.22506-1-weiyuanx.li@intel.com> References: <20230202025927.22506-1-weiyuanx.li@intel.com> 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 It takes too much time to check 100M TX-packets, according to the test plan only 100K Tx-packets needs to be checked to optimize the test steps. Signed-off-by: Weiyuan Li --- tests/TestSuite_rxtx_offload.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_rxtx_offload.py b/tests/TestSuite_rxtx_offload.py index c60bb68b..4c084abf 100644 --- a/tests/TestSuite_rxtx_offload.py +++ b/tests/TestSuite_rxtx_offload.py @@ -235,7 +235,7 @@ class TestRxTx_Offload(TestCase): while i < count: if rxtx == "tx": pks_l1 = re.findall(r"TX-packets: (\w+)", out1) - time.sleep(15) + time.sleep(3) out1 = self.dut.send_expect("show port stats all", "testpmd> ") pks_l2 = re.findall(r"TX-packets: (\w+)", out1) self.logger.info( @@ -252,7 +252,7 @@ class TestRxTx_Offload(TestCase): self.verify( int(pks_l2[index]) > int(pks_l1[index]), "TX-packets hang" ) - if int(pks_l1[index]) < 100000000 or int(pks_l2[index]) < 100000000: + if int(pks_l1[index]) < 100000 or int(pks_l2[index]) < 100000: count += 1 i += 1 if count > 25: -- 2.25.1