* [dts] [PATCH V1] tests/dpdk_hugetlbfs_mount_size: Start testpmd with different pci
@ 2020-11-10 13:56 JiangYuX
2020-11-10 5:59 ` Jiang, YuX
2020-11-11 6:47 ` Tu, Lijuan
0 siblings, 2 replies; 4+ messages in thread
From: JiangYuX @ 2020-11-10 13:56 UTC (permalink / raw)
To: dts; +Cc: JiangYu
From: JiangYu <yux.jiang@intel.com>
1,Start testpmd with different pci
2,Umount huges in tear_down.
Signed-off-by: JiangYu <yux.jiang@intel.com>
---
tests/TestSuite_dpdk_hugetlbfs_mount_size.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/tests/TestSuite_dpdk_hugetlbfs_mount_size.py b/tests/TestSuite_dpdk_hugetlbfs_mount_size.py
index 25c4ed2..48fdc8e 100644
--- a/tests/TestSuite_dpdk_hugetlbfs_mount_size.py
+++ b/tests/TestSuite_dpdk_hugetlbfs_mount_size.py
@@ -207,7 +207,7 @@ class DpdkHugetlbfsMountSize(TestCase):
self.logger.info("launch secondary testpmd")
ttd_secondary = 'numactl --membind=%d %s -l %s -n %d --legacy-mem --socket-mem %s --huge-dir' \
' %s --file-prefix=%s -w %s -- -i --socket-num=%d --no-numa'
- launch_ttd_secondary = ttd_secondary % (self.numa_id, self.app_path, self.core_list2, self.mem_channels, self.socket_mem2, MNT_PATH[1], vhost_name[1], self.pci_info_0, self.numa_id)
+ launch_ttd_secondary = ttd_secondary % (self.numa_id, self.app_path, self.core_list2, self.mem_channels, self.socket_mem2, MNT_PATH[1], vhost_name[1], self.pci_info_1, self.numa_id)
self.session_secondary.send_expect(launch_ttd_secondary, "testpmd> ", 120)
self.session_secondary.send_expect("set promisc all off", "testpmd> ", 120)
self.session_secondary.send_expect("start", "testpmd> ", 120)
@@ -236,6 +236,7 @@ class DpdkHugetlbfsMountSize(TestCase):
# start send packet and verify the session can receive the packet.
self.send_pkg(0)
self.verify_result(self.session_first)
+ self.send_pkg(1)
self.verify_result(self.session_secondary)
self.session_first.send_expect("quit", "#", 15)
self.session_secondary.send_expect("quit", "#", 15)
@@ -262,6 +263,8 @@ class DpdkHugetlbfsMountSize(TestCase):
"""
Run after each test case.
"""
+ # If case fails, the mount should be cancelled to avoid affecting next cases
+ self.umount_huge([MNT_PATH[0], MNT_PATH[1], MNT_PATH[2]])
self.dut.kill_all()
time.sleep(2)
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] tests/dpdk_hugetlbfs_mount_size: Start testpmd with different pci
2020-11-10 13:56 [dts] [PATCH V1] tests/dpdk_hugetlbfs_mount_size: Start testpmd with different pci JiangYuX
@ 2020-11-10 5:59 ` Jiang, YuX
2020-11-17 5:58 ` Wang, Yinan
2020-11-11 6:47 ` Tu, Lijuan
1 sibling, 1 reply; 4+ messages in thread
From: Jiang, YuX @ 2020-11-10 5:59 UTC (permalink / raw)
To: Jiang, YuX, dts
[-- Attachment #1: Type: text/plain, Size: 360 bytes --]
Tested-by: JiangYuX <yux.jiang@intel.com>
Best Regards
Jiang yu
> -----Original Message-----
> From: JiangYuX [mailto:yux.jiang@intel.com]
> Sent: Tuesday, November 10, 2020 9:57 PM
> To: dts@dpdk.org
> Cc: Jiang, YuX <yux.jiang@intel.com>
> Subject: [dts] [PATCH V1] tests/dpdk_hugetlbfs_mount_size: Start testpmd
> with different pci
[-- Attachment #2: DpdkHugetlbfsMountSize.log --]
[-- Type: application/octet-stream, Size: 41340 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] tests/dpdk_hugetlbfs_mount_size: Start testpmd with different pci
2020-11-10 5:59 ` Jiang, YuX
@ 2020-11-17 5:58 ` Wang, Yinan
0 siblings, 0 replies; 4+ messages in thread
From: Wang, Yinan @ 2020-11-17 5:58 UTC (permalink / raw)
To: Jiang, YuX, Jiang, YuX, dts
Acked-by: Wang, Yinan <yinan.wang@intel.com>
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Jiang, YuX
> Sent: 2020?11?10? 14:00
> To: Jiang, YuX <yux.jiang@intel.com>; dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/dpdk_hugetlbfs_mount_size: Start
> testpmd with different pci
>
> Tested-by: JiangYuX <yux.jiang@intel.com>
>
> Best Regards
> Jiang yu
>
>
> > -----Original Message-----
> > From: JiangYuX [mailto:yux.jiang@intel.com]
> > Sent: Tuesday, November 10, 2020 9:57 PM
> > To: dts@dpdk.org
> > Cc: Jiang, YuX <yux.jiang@intel.com>
> > Subject: [dts] [PATCH V1] tests/dpdk_hugetlbfs_mount_size: Start
> testpmd
> > with different pci
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dts] [PATCH V1] tests/dpdk_hugetlbfs_mount_size: Start testpmd with different pci
2020-11-10 13:56 [dts] [PATCH V1] tests/dpdk_hugetlbfs_mount_size: Start testpmd with different pci JiangYuX
2020-11-10 5:59 ` Jiang, YuX
@ 2020-11-11 6:47 ` Tu, Lijuan
1 sibling, 0 replies; 4+ messages in thread
From: Tu, Lijuan @ 2020-11-11 6:47 UTC (permalink / raw)
To: Jiang, YuX, dts; +Cc: Jiang, YuX
> 1,Start testpmd with different pci
> 2,Umount huges in tear_down.
>
> Signed-off-by: JiangYu <yux.jiang@intel.com>
Applied
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-11-17 5:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-10 13:56 [dts] [PATCH V1] tests/dpdk_hugetlbfs_mount_size: Start testpmd with different pci JiangYuX
2020-11-10 5:59 ` Jiang, YuX
2020-11-17 5:58 ` Wang, Yinan
2020-11-11 6:47 ` 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).