test suite reviews and discussions
 help / color / mirror / Atom feed
From: JiangYuX <yux.jiang@intel.com>
To: dts@dpdk.org
Cc: JiangYu <yux.jiang@intel.com>
Subject: [dts] [PATCH V1] tests/dpdk_hugetlbfs_mount_size: Start testpmd with different pci
Date: Tue, 10 Nov 2020 13:56:46 +0000	[thread overview]
Message-ID: <20201110135646.1809176-1-yux.jiang@intel.com> (raw)

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


             reply	other threads:[~2020-11-10  5:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-10 13:56 JiangYuX [this message]
2020-11-10  5:59 ` Jiang, YuX
2020-11-17  5:58   ` Wang, Yinan
2020-11-11  6:47 ` Tu, Lijuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201110135646.1809176-1-yux.jiang@intel.com \
    --to=yux.jiang@intel.com \
    --cc=dts@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).