test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V2] tests/dpdk_hugetlbfs_mount_size: fix verify failed can't umount huge page
@ 2022-02-15  6:26 Wei Ling
  2022-02-16  1:41 ` Tu, Lijuan
  0 siblings, 1 reply; 4+ messages in thread
From: Wei Ling @ 2022-02-15  6:26 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..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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [dts][PATCH V2] tests/dpdk_hugetlbfs_mount_size: fix verify failed can't umount huge page
  2022-02-15  6:26 [dts][PATCH V2] tests/dpdk_hugetlbfs_mount_size: fix verify failed can't umount huge page Wei Ling
@ 2022-02-16  1:41 ` Tu, Lijuan
  2022-02-16  1:52   ` Ling, WeiX
  0 siblings, 1 reply; 4+ messages in thread
From: Tu, Lijuan @ 2022-02-16  1:41 UTC (permalink / raw)
  To: Ling, WeiX, dts; +Cc: Ling, WeiX

> Subject: [dts][PATCH V2] tests/dpdk_hugetlbfs_mount_size: fix verify failed can't
> umount huge page
> 
> 1.Add kill testpmd step in set_up.

Could you explain why it is reasonable to kill  testpmd in set_up. It has done this in tear_down, it is enough to handle the exception that testpmd not quit.

> 2.Add kill testpmd before umount hege page in tear_down.
> 
> Signed-off-by: Wei Ling <weix.ling@intel.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [dts][PATCH V2] tests/dpdk_hugetlbfs_mount_size: fix verify failed can't umount huge page
  2022-02-16  1:41 ` Tu, Lijuan
@ 2022-02-16  1:52   ` Ling, WeiX
  2022-02-16  2:28     ` Tu, Lijuan
  0 siblings, 1 reply; 4+ messages in thread
From: Ling, WeiX @ 2022-02-16  1:52 UTC (permalink / raw)
  To: Tu, Lijuan, dts

> -----Original Message-----
> From: Tu, Lijuan <lijuan.tu@intel.com>
> Sent: Wednesday, February 16, 2022 9:42 AM
> To: Ling, WeiX <weix.ling@intel.com>; dts@dpdk.org
> Cc: Ling, WeiX <weix.ling@intel.com>
> Subject: RE: [dts][PATCH V2] tests/dpdk_hugetlbfs_mount_size: fix verify
> failed can't umount huge page
> 
> > Subject: [dts][PATCH V2] tests/dpdk_hugetlbfs_mount_size: fix verify
> > failed can't umount huge page
> >
> > 1.Add kill testpmd step in set_up.
> 
> Could you explain why it is reasonable to kill  testpmd in set_up. It has done
> this in tear_down, it is enough to handle the exception that testpmd not quit.
> 
> > 2.Add kill testpmd before umount hege page in tear_down.
> >
> > Signed-off-by: Wei Ling <weix.ling@intel.com>
> 
When other suite executed done, but have not quit testpmd, kill testpmd in set_up will go into effect.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [dts][PATCH V2] tests/dpdk_hugetlbfs_mount_size: fix verify failed can't umount huge page
  2022-02-16  1:52   ` Ling, WeiX
@ 2022-02-16  2:28     ` Tu, Lijuan
  0 siblings, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2022-02-16  2:28 UTC (permalink / raw)
  To: Ling, WeiX, dts

> > > Subject: [dts][PATCH V2] tests/dpdk_hugetlbfs_mount_size: fix verify
> > > failed can't umount huge page
> > >
> > > 1.Add kill testpmd step in set_up.
> >
> > Could you explain why it is reasonable to kill  testpmd in set_up. It
> > has done this in tear_down, it is enough to handle the exception that testpmd
> not quit.
> >
> > > 2.Add kill testpmd before umount hege page in tear_down.
> > >
> > > Signed-off-by: Wei Ling <weix.ling@intel.com>
> >
> When other suite executed done, but have not quit testpmd, kill testpmd in
> set_up will go into effect.

It's better to figure out which have this issue and fix it.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-16  2:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-15  6:26 [dts][PATCH V2] tests/dpdk_hugetlbfs_mount_size: fix verify failed can't umount huge page Wei Ling
2022-02-16  1:41 ` Tu, Lijuan
2022-02-16  1:52   ` Ling, WeiX
2022-02-16  2:28     ` Tu, Lijuan

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).