test suite reviews and discussions
 help / color / mirror / Atom feed
* [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

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

test suite reviews and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/dts/0 dts/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dts dts/ http://inbox.dpdk.org/dts \
		dts@dpdk.org
	public-inbox-index dts

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dts


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git