From patchwork Fri Sep 16 11:16:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 116378 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 27ABCA0032; Fri, 16 Sep 2022 05:03:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 21BB640DFD; Fri, 16 Sep 2022 05:03:58 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 655F940687 for ; Fri, 16 Sep 2022 05:03:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663297436; x=1694833436; h=from:to:cc:subject:date:message-id; bh=Z0AR2dKbqRxwlaKx6m4oq8QkW+EXMVC9FqDGKqRln70=; b=IJUPN8iC3eEUrPJXuRlDbvHWt+JT3+2qB0o0pKNT6U8OK3/wF9OABvho BnJE3rkFd6cfpM6qUmZL9TbA+Yx5bbldsvvKfp1mYanFvxRdi7vClIBEc 7olb83PlM2kgPm5hQzil2Pg/xiLenr6frBEG6sGLjqlR3FIecEJUJdX+0 DXM15MYZ7Q+86qJpEQlw6x2x5/bI9pPEyMU8r7E2d+Vfvdj6/43zh6xgg uN4FLw+iClw2BXyGRhWhfci3SPFWde5topqX9/7G/3iDAnZl5rFyFy8T3 /H7N2s35YGAPaJGCeLwqehZ1bF3TRbeUh3w0kyPLCkqbm4SwqBts8RK8f A==; X-IronPort-AV: E=McAfee;i="6500,9779,10471"; a="385188206" X-IronPort-AV: E=Sophos;i="5.93,319,1654585200"; d="scan'208";a="385188206" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2022 20:03:43 -0700 X-IronPort-AV: E=Sophos;i="5.93,319,1654585200"; d="scan'208";a="595084340" Received: from unknown (HELO localhost.localdomain) ([10.239.252.94]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2022 20:03:42 -0700 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V2 1/2] tests/ice_dcf_switch_filter_gtpu: optimization scrip Date: Fri, 16 Sep 2022 11:16:17 +0000 Message-Id: <20220916111618.22655-1-songx.jiale@intel.com> X-Mailer: git-send-email 2.17.1 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.add timeout 2.the "testpmd_status" is the wrong status when launch app timeout, it will affect other cases test.therefore, add "kill_all" to ensure that all dpdk processes are closed. Signed-off-by: Song Jiale --- tests/TestSuite_ice_dcf_switch_filter_gtpu.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_ice_dcf_switch_filter_gtpu.py b/tests/TestSuite_ice_dcf_switch_filter_gtpu.py index 0f48d78d..8c63a976 100644 --- a/tests/TestSuite_ice_dcf_switch_filter_gtpu.py +++ b/tests/TestSuite_ice_dcf_switch_filter_gtpu.py @@ -3592,8 +3592,7 @@ class ICEDCFSwitchFilterGTPUTest(TestCase): """ dcf switch need reload driver to ensure create rule sucessful """ - self.dut.send_expect("rmmod ice", "# ", 15) - self.dut.send_expect("modprobe ice", "# ", 15) + self.dut.send_expect("rmmod ice && modprobe ice", "# ", 60) def create_testpmd_command(self): """ @@ -3617,7 +3616,7 @@ class ICEDCFSwitchFilterGTPUTest(TestCase): launch testpmd with the command """ command = self.create_testpmd_command() - self.dut.send_expect(command, "testpmd> ", 15) + self.dut.send_expect(command, "testpmd> ", 30) self.testpmd_status = "running" self.dut.send_expect("set portlist 1", "testpmd> ", 15) self.dut.send_expect("set fwd rxonly", "testpmd> ", 15) @@ -3822,12 +3821,10 @@ class ICEDCFSwitchFilterGTPUTest(TestCase): self.dut.send_expect("flow flush 0", "testpmd> ", 15) self.dut.send_expect("clear port stats all", "testpmd> ", 15) self.dut.send_expect("quit", "#", 15) - # kill all DPDK application - self.dut.kill_all() # destroy vfs for port_id in self.dut_ports: self.dut.destroy_sriov_vfs_by_port(port_id) - self.testpmd_status = "close" + self.testpmd_status = "close" if getattr(self, "session_secondary", None): self.dut.close_session(self.session_secondary) @@ -3971,6 +3968,8 @@ class ICEDCFSwitchFilterGTPUTest(TestCase): Run after each test case. """ self.destroy_testpmd_and_vf() + # kill all DPDK application + self.dut.kill_all() def tear_down_all(self): """ From patchwork Fri Sep 16 11:16:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jiale, SongX" X-Patchwork-Id: 116379 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 46F32A00C3; Fri, 16 Sep 2022 05:03:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 43807427F9; Fri, 16 Sep 2022 05:03:58 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 4720840223 for ; Fri, 16 Sep 2022 05:03:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1663297437; x=1694833437; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=uDcfq9IB/VQybGFdzliWE1qoTaZRrsE33awGemTkjiQ=; b=MiYThzAm9E31CMWnOWfGiR4DIqpspzYoUuYIT7zNpFM+dmRpIve+oRhT 0sRGGJV8XqMxJjJfJOx1mVSIdIHIurHmQ0rxZ+SPCLYD2rFblEbIF4Ker 4C0sRZxXNGTPLbI6eYQP/nJuUep+Q8u8iAgum4JKwrDLTDYiyXEOVdQYI D2XJUO/8CuhDu0NvanGfrauFP88R3QNSQlTSofiW1M+9c9PFAAgWokHfL +I5P380K88pdArhbi1L7sMNxsUsPoQQ5EusUwiwmYHXhREImwmK0PvrEA LJ/UbX4s3yMHucyMn/17B5BwIrtgpp3GTwl60y655u1EMqLEJRwJ9hCKt g==; X-IronPort-AV: E=McAfee;i="6500,9779,10471"; a="385188213" X-IronPort-AV: E=Sophos;i="5.93,319,1654585200"; d="scan'208";a="385188213" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2022 20:03:45 -0700 X-IronPort-AV: E=Sophos;i="5.93,319,1654585200"; d="scan'208";a="595084349" Received: from unknown (HELO localhost.localdomain) ([10.239.252.94]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2022 20:03:43 -0700 From: Song Jiale To: dts@dpdk.org Cc: Song Jiale Subject: [dts] [PATCH V2 2/2] tests/ice_dcf_switch_filter_pppoe: optimization scrip Date: Fri, 16 Sep 2022 11:16:18 +0000 Message-Id: <20220916111618.22655-2-songx.jiale@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220916111618.22655-1-songx.jiale@intel.com> References: <20220916111618.22655-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.add timeout 2.the "testpmd_status" is the wrong status when launch app timeout, it will affect other cases test.therefore, add "kill_all" to ensure that all dpdk processes are closed. Signed-off-by: Song Jiale --- tests/TestSuite_ice_dcf_switch_filter_pppoe.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/TestSuite_ice_dcf_switch_filter_pppoe.py b/tests/TestSuite_ice_dcf_switch_filter_pppoe.py index 7b974e01..9cd6cf9b 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,7 +895,7 @@ class ICEDCFSwitchFilterPPPOETest(TestCase): launch testpmd with the command """ command = self.create_testpmd_command() - out = self.dut.send_expect(command, "testpmd> ", 15) + out = self.dut.send_expect(command, "testpmd> ", 30) self.testpmd_status = "running" self.dut.send_expect("set portlist 1", "testpmd> ", 15) self.dut.send_expect("set fwd rxonly", "testpmd> ", 15) @@ -1266,14 +1265,14 @@ class ICEDCFSwitchFilterPPPOETest(TestCase): self.dut.send_expect("flow flush 0", "testpmd> ", 15) self.dut.send_expect("clear port stats all", "testpmd> ", 15) self.dut.send_expect("quit", "#", 15) - # kill all DPDK application - self.dut.kill_all() # destroy vfs for port_id in self.dut_ports: self.dut.destroy_sriov_vfs_by_port(port_id) - self.testpmd_status = "close" + self.testpmd_status = "close" if getattr(self, "session_secondary", None): self.dut.close_session(self.session_secondary) + # kill all DPDK application + self.dut.kill_all() def tear_down_all(self): """