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 A8E6BA00C5; Tue, 15 Feb 2022 07:21:51 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9AD3840E78; Tue, 15 Feb 2022 07:21:51 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 8E79440DDA for ; Tue, 15 Feb 2022 07:21:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644906109; x=1676442109; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6Tc4+VoB5DT7zTBLpXblCSDl3XvHXRSxCXSnZAVMzzg=; b=l6T7RLIGS6Ti0V/HQVcdNdegZDEkYjRuNZpDvQKBOraO6jmM8/0Omllo quJS9zdRAGWTypIP4pddzkskpOW24AMvsN8rTcStJvPA+nm7SGHxbz6ob 3sVSW+HI46ZAZIWbwDAB2/3ELn0FzdQseQ/40kLisiCOkFBI9RnZYad93 BSHv/WNXxq1SVT/9sw4AVeethlfm901J8PoDIbr6+/IDvJnUrBz0iSkMv w0u34bLvgDSWUaKLqnaLZsQ4SZSoSD4sv6A53gC3lG3Tkdh50nerxA7p5 3zxikc6flE+S038uc9yUyc5O9j1ld7TTiLOk62hhw9R9NB+x7XhSlQ9IP w==; X-IronPort-AV: E=McAfee;i="6200,9189,10258"; a="250006378" X-IronPort-AV: E=Sophos;i="5.88,370,1635231600"; d="scan'208";a="250006378" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2022 22:21:48 -0800 X-IronPort-AV: E=Sophos;i="5.88,370,1635231600"; d="scan'208";a="680860896" Received: from unknown (HELO localhost.localdomain) ([10.239.251.222]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2022 22:21:47 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1] tests/dpdk_hugetlbfs_mount_size: fix verify failed can't umount huge page Date: Tue, 15 Feb 2022 14:21:36 +0800 Message-Id: <20220215062136.2136108-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 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 1.Add kill testpmd step in set_up. 2.Add kill testpmd before umount hege page in tear_down. Signed-off-by: Wei Ling --- tests/TestSuite_dpdk_hugetlbfs_mount_size.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/TestSuite_dpdk_hugetlbfs_mount_size.py b/tests/TestSuite_dpdk_hugetlbfs_mount_size.py index c7da7b9e..518302cf 100644 --- a/tests/TestSuite_dpdk_hugetlbfs_mount_size.py +++ b/tests/TestSuite_dpdk_hugetlbfs_mount_size.py @@ -72,13 +72,13 @@ class DpdkHugetlbfsMountSize(TestCase): self.socket_mem2 = "0,2048" self.umount_huge([DEFAULT_MNT]) self.app_path = self.dut.apps_name['test-pmd'] - + self.testpmd_name = self.path.split("/")[-1] def set_up(self): """ Run before each test case. """ - pass + self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#") def close_session(self): self.dut.close_session(self.session_first) @@ -265,6 +265,7 @@ class DpdkHugetlbfsMountSize(TestCase): Run after each test case. """ # If case fails, the mount should be cancelled to avoid affecting next cases + self.dut.send_expect("killall -s INT %s" % self.testpmd_name, "#") self.umount_huge([MNT_PATH[0], MNT_PATH[1], MNT_PATH[2]]) self.dut.kill_all() time.sleep(2) -- 2.25.1