From patchwork Wed Sep 14 10:33:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 116251 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 90213A00C3; Wed, 14 Sep 2022 04:19:49 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5476440E50; Wed, 14 Sep 2022 04:19:48 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id C8BC240151 for ; Wed, 14 Sep 2022 04:19:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663121987; x=1694657987; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=icxPO7UjXrGIssbYlOPuQ/0drgfFB5eoWgxbS8uaWiU=; b=EB5U3Jgppo1n5T9G+ewMbUFmcUHsDnkOG+yDmUG3alH/WtuPWHiZf5CM XJhYL2tZbaK/C7yc75raEduko6upVqqaAbkFSdIVb7KwW6UIhHrvFN+mw cmWqr/jDB94HgCr6bGpTC/Q2PsokFL95XYArDlypwzxeXFKikGiHBcg3H kcEmnWKIXaX/otRBAaT6fX/3/IZfVNMcvchJTLRmOPPELarra1d/C9H/s yEBcBEeYUAu7vxB/cOsppEyTR/ZZKGS9rhJhL17N6fF9HYaBHklhKM/M4 FPw5E7ERrm5E5Ifre3ovT8uOyzf8pivUlLAmW/LSf6KKriOVGU9hIccfx Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10469"; a="295898168" X-IronPort-AV: E=Sophos;i="5.93,313,1654585200"; d="scan'208";a="295898168" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2022 19:19:46 -0700 X-IronPort-AV: E=Sophos;i="5.93,313,1654585200"; d="scan'208";a="678842441" Received: from unknown (HELO localhost.localdomain) ([10.239.252.94]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2022 19:19:45 -0700 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V1 2/2] tests/ice_dcf_switch_filter_pppoe: optimization script Date: Wed, 14 Sep 2022 10:33:26 +0000 Message-Id: <20220914103326.29999-2-songx.jiale@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220914103326.29999-1-songx.jiale@intel.com> References: <20220914103326.29999-1-songx.jiale@intel.com> 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 1.the "testpmd_status" is the wrong status when launch app timeout, it will affect other cases test. therefore, changing the status first and then starting the app can solve this issue. 2.add timeout. Signed-off-by: Song Jiale --- tests/TestSuite_ice_dcf_switch_filter_pppoe.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_ice_dcf_switch_filter_pppoe.py b/tests/TestSuite_ice_dcf_switch_filter_pppoe.py index 7b974e01..d8c8cb42 100644 --- a/tests/TestSuite_ice_dcf_switch_filter_pppoe.py +++ b/tests/TestSuite_ice_dcf_switch_filter_pppoe.py @@ -867,8 +867,7 @@ class ICEDCFSwitchFilterPPPOETest(TestCase): time.sleep(5) def reload_ice(self): - self.dut.send_expect("rmmod ice", "# ", 15) - self.dut.send_expect("modprobe ice", "# ", 15) + self.dut.send_expect("rmmod ice && modprobe ice", "# ", 60) def set_up(self): """ @@ -896,8 +895,8 @@ class ICEDCFSwitchFilterPPPOETest(TestCase): launch testpmd with the command """ command = self.create_testpmd_command() - out = self.dut.send_expect(command, "testpmd> ", 15) self.testpmd_status = "running" + self.dut.send_expect(command, "testpmd> ", 30) self.dut.send_expect("set portlist 1", "testpmd> ", 15) self.dut.send_expect("set fwd rxonly", "testpmd> ", 15) self.dut.send_expect("set verbose 1", "testpmd> ", 15)