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 7C2E0A00C5; Tue, 15 Feb 2022 07:26:51 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 715B640E78; Tue, 15 Feb 2022 07:26:51 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 763C840DDA for ; Tue, 15 Feb 2022 07:26:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644906410; x=1676442410; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6FtOygFZkDjuPZytP618roM53pwGWIwjHoov7NCJOcc=; b=AGEWiS/GUKJDsvW1CjVHk1GpwXKLxR4kwarPt/YOzUbuWfWTXHJMA6p2 LnWG4EsGUGh8RfMjDZmMt3TDpKQCBaMUByfFQntcmmeyjmJtBc5sBeTeT F7+XSyTdif7GhC+s6+2djnC4nS5lJx5PoCTCBCKp9dqu2FCahrVAllnZm aT9CwxzAp7YQ0FQEGJvw3GQj2xlXMWi785L553ruhl5CeDDEL0Y7PnCIP 2J1IVoCKzxX+Hee0NrmVaH55ENnpjBe2wU9I2fAlsNmUVZ7pS3aIGl6q+ dFD6UK4db/Xq0NeJbj0nhUTFQFvguzXSV30kzz3VD4WOoqTlQf/OU66tM w==; X-IronPort-AV: E=McAfee;i="6200,9189,10258"; a="336688125" X-IronPort-AV: E=Sophos;i="5.88,370,1635231600"; d="scan'208";a="336688125" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Feb 2022 22:26:49 -0800 X-IronPort-AV: E=Sophos;i="5.88,370,1635231600"; d="scan'208";a="680863027" 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:26:48 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V2] tests/dpdk_hugetlbfs_mount_size: fix verify failed can't umount huge page Date: Tue, 15 Feb 2022 14:26:44 +0800 Message-Id: <20220215062644.2136279-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..d116810d 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.app_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