test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts][PATCH V1] tests/virtio_user_for_container_networking: modify hard code
@ 2023-01-04  5:32 Wei Ling
  2023-01-05 14:30 ` lijuan.tu
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Ling @ 2023-01-04  5:32 UTC (permalink / raw)
  To: dts; +Cc: Wei Ling

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


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

* [dts][PATCH V1] tests/virtio_user_for_container_networking: modify hard code
  2023-01-04  5:32 [dts][PATCH V1] tests/virtio_user_for_container_networking: modify hard code Wei Ling
@ 2023-01-05 14:30 ` lijuan.tu
  0 siblings, 0 replies; 2+ messages in thread
From: lijuan.tu @ 2023-01-05 14:30 UTC (permalink / raw)
  To: dts, Wei Ling; +Cc: Wei Ling

On Wed,  4 Jan 2023 13:32:57 +0800, Wei Ling <weix.ling@intel.com> wrote:
> 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>


Applied, thanks

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

end of thread, other threads:[~2023-01-05 14:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-04  5:32 [dts][PATCH V1] tests/virtio_user_for_container_networking: modify hard code Wei Ling
2023-01-05 14:30 ` lijuan.tu

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