test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1] tests/dpdk_hugetlbfs_mount_size: fix verify failed can't umount huge page
@ 2022-02-15  6:21 Wei Ling
  0 siblings, 0 replies; only message in thread
From: Wei Ling @ 2022-02-15  6:21 UTC (permalink / raw)
  To: dts; +Cc: Wei Ling

1.Add kill testpmd step in set_up.
2.Add kill testpmd before umount hege page in tear_down.

Signed-off-by: Wei Ling <weix.ling@intel.com>
---
 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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-15  6:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-15  6:21 [dts][PATCH V1] tests/dpdk_hugetlbfs_mount_size: fix verify failed can't umount huge page Wei Ling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).