From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 355B8A052A; Tue, 10 Nov 2020 06:57:10 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2B72CBBBA; Tue, 10 Nov 2020 06:57:08 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 0401EBB94 for ; Tue, 10 Nov 2020 06:57:06 +0100 (CET) IronPort-SDR: lZxaI5hgu+L5vJlol3FUGIF1BPq2zV0T6nBjCXN/2vGFrtgoIgOlz22uGnJVQfQUWXtJSsJBMa TiD751Rtw1ZA== X-IronPort-AV: E=McAfee;i="6000,8403,9800"; a="167339419" X-IronPort-AV: E=Sophos;i="5.77,465,1596524400"; d="scan'208";a="167339419" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2020 21:57:03 -0800 IronPort-SDR: BxX6V0T/cjL6j4x9jHjb2nfes3972j/J2BoY2FMmA5qD2IL64Qdc27kDC17yVxK0jr4axWhg12 TyjEIFn9Pi7g== X-IronPort-AV: E=Sophos;i="5.77,465,1596524400"; d="scan'208";a="541194858" Received: from unknown (HELO localhost.localdomain) ([10.240.183.77]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2020 21:57:02 -0800 From: JiangYuX To: dts@dpdk.org Cc: JiangYu Date: Tue, 10 Nov 2020 13:56:46 +0000 Message-Id: <20201110135646.1809176-1-yux.jiang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dts] [PATCH V1] tests/dpdk_hugetlbfs_mount_size: Start testpmd with different pci X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 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 Sender: "dts" From: JiangYu 1,Start testpmd with different pci 2,Umount huges in tear_down. Signed-off-by: JiangYu --- 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