From: Wei Ling <weix.ling@intel.com>
To: dts@dpdk.org
Cc: Wei Ling <weix.ling@intel.com>
Subject: [dts][PATCH V1] tests/virtio_user_for_container_networking: modify hard code
Date: Wed, 4 Jan 2023 13:32:57 +0800 [thread overview]
Message-ID: <20230104053257.580253-1-weix.ling@intel.com> (raw)
The hugepage path is not fixed /mnt/huge, maybe /dev/hugepages, so use
self.dut.hugepage_path to get the right hugepage path.
Signed-off-by: Wei Ling <weix.ling@intel.com>
---
tests/TestSuite_virtio_user_for_container_networking.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/TestSuite_virtio_user_for_container_networking.py b/tests/TestSuite_virtio_user_for_container_networking.py
index 790b88fb..b26a0c1c 100644
--- a/tests/TestSuite_virtio_user_for_container_networking.py
+++ b/tests/TestSuite_virtio_user_for_container_networking.py
@@ -157,7 +157,7 @@ class TestVirtioUserForContainer(TestCase):
if self.check_2M_env:
command_line_user = (
"docker run -i -t --privileged -v %s/vhost-net:/tmp/vhost-net "
- + "-v /mnt/huge:/dev/hugepages "
+ + "-v %s:/dev/hugepages "
+ "-v %s:%s %s .%s/%s -c %s -n %d "
+ "-m 1024 --no-pci --file-prefix=container --single-file-segments "
+ "--vdev=virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=%d "
@@ -166,7 +166,7 @@ class TestVirtioUserForContainer(TestCase):
else:
command_line_user = (
"docker run -i -t --privileged -v %s/vhost-net:/tmp/vhost-net "
- + "-v /mnt/huge:/dev/hugepages "
+ + "-v %s:/dev/hugepages "
+ "-v %s:%s %s .%s/%s -c %s -n %d "
+ "-m 1024 --no-pci --file-prefix=container "
+ "--vdev=virtio_user0,mac=00:11:22:33:44:10,path=/tmp/vhost-net,queues=%d "
@@ -174,6 +174,7 @@ class TestVirtioUserForContainer(TestCase):
)
command_line_user = command_line_user % (
self.container_base_dir,
+ self.dut.hugepage_path,
self.container_base_dir,
self.container_base_dir,
self.docker_image,
--
2.25.1
next reply other threads:[~2023-01-04 5:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-04 5:32 Wei Ling [this message]
2023-01-05 14:30 ` lijuan.tu
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=20230104053257.580253-1-weix.ling@intel.com \
--to=weix.ling@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).