From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AAA3CA00C2; Wed, 4 Jan 2023 06:42:14 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A2D8940A82; Wed, 4 Jan 2023 06:42:14 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 0D12E40697 for ; Wed, 4 Jan 2023 06:42:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1672810933; x=1704346933; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Y0wporf4r1TWAIVERFyNQLVkXi5yYhi+nx6XYK+grk8=; b=cIJWLP1FkpkqQZ1vxlUsPK1HTSRCmLJu2jeDtEM7O0RrlGe0BqZbUuOf 5v7/5YeplBUydx0c9zwCIFDWwZkz9q8wT4EpRahU+1HdxSJkXqJFiwg1r jd1QE9PK+CMsZRib6hMQRoHbpSajkvk7XCGTteb084skMMiKVakw9XL4r hHGgGpoW0wfvOXykFyMlmsgZPvvemyO1FMWkNAWBfn0DTidLw378JMkBY tpBYyERNWaGSNni4HgOHjvuw3yWa4R1qdprWaYa0jhydN4LZqYmGfozTn nv+nOTOfCvRKvWZR9tH1Vhkgnw0mcvum/LI+XgCulSmckERv4KsOFBC7J g==; X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="302214815" X-IronPort-AV: E=Sophos;i="5.96,297,1665471600"; d="scan'208";a="302214815" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2023 21:42:12 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10579"; a="723523713" X-IronPort-AV: E=Sophos;i="5.96,297,1665471600"; d="scan'208";a="723523713" Received: from unknown (HELO localhost.localdomain) ([10.239.252.222]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jan 2023 21:42:10 -0800 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1] tests/virtio_user_for_container_networking: modify hard code Date: Wed, 4 Jan 2023 13:32:57 +0800 Message-Id: <20230104053257.580253-1-weix.ling@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org 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 --- 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