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 1ED6042C31; Mon, 5 Jun 2023 08:55:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1BE9D40A87; Mon, 5 Jun 2023 08:55:33 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 0FF9C4003C for ; Mon, 5 Jun 2023 08:55:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685948131; x=1717484131; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Q/Z7NeE8SSXpsv/T2JQVZYmtRlIR9Fpt9/PoMpX4iH4=; b=n0eQLVzrOMjeWQWxnwfGVgw1tfch1qciuust8AKXXnEAbdbn/GAn1eRp KfjKBGYvn5qp9eiT5Pu8FlHhCpZVSLE7SqOSqED7ki5H9cKj2MapKSvQv c9C7ln0Hmikw0jOqTS8KcCqW3O9+IdbAgsoGTj12ytMhNvGMUxSY2No3f xX1c0V5c/+pogGAKuU6mabTJ62/OndqDkeD0kHslvGDpSLTnGl2PQZlFr pPoVuxoueQKM4MzqGORi4/RjiGfpnvi5IfNOJ6m3hNUJE20g3tlm7Mfdi LXGSzsa/8VmgtjkdstobOfitmRIBw2DEU39PT//zrXBhRXszp3jBI8Evp w==; X-IronPort-AV: E=McAfee;i="6600,9927,10731"; a="422124090" X-IronPort-AV: E=Sophos;i="6.00,217,1681196400"; d="scan'208";a="422124090" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2023 23:55:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10731"; a="738263198" X-IronPort-AV: E=Sophos;i="6.00,217,1681196400"; d="scan'208";a="738263198" Received: from unknown (HELO dut222..) ([10.239.252.222]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2023 23:55:29 -0700 From: Wei Ling To: dts@dpdk.org Cc: Wei Ling Subject: [dts][PATCH V1 2/2] tests/pvp_virtio_user_4k_pages: modify testuite by DPDK changed Date: Mon, 5 Jun 2023 14:55:20 +0800 Message-Id: <20230605065520.564604-1-weix.ling@intel.com> X-Mailer: git-send-email 2.34.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 1.Fix the verify the test result PASS or FAIL from the config file issue. 2.As the DPDK commit a399d7b5(vfio: do not coalesce DMA mappings) changed, We need to delete the `--no-huge -m 1024` parameter when start the vhost-user as back-end side. So delete `--no-huge -m 1024` parameter in testsuite. Signed-off-by: Wei Ling --- tests/TestSuite_pvp_virtio_user_4k_pages.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/TestSuite_pvp_virtio_user_4k_pages.py b/tests/TestSuite_pvp_virtio_user_4k_pages.py index a89725e5..e8011fd3 100644 --- a/tests/TestSuite_pvp_virtio_user_4k_pages.py +++ b/tests/TestSuite_pvp_virtio_user_4k_pages.py @@ -159,10 +159,11 @@ class TestPvpVirtioUser4kPages(TestCase): self.result_table_add(table_row) # present test results to screen self.result_table_print() - self.verify( - "FAIL" not in self.test_result, - "Excessive gap between test results and expectations", - ) + for data in self.test_result.values(): + self.verify( + data["Status"] != "FAIL", + "Excessive gap between test results and expectations", + ) def start_testpmd_as_vhost(self): """ @@ -177,7 +178,7 @@ class TestPvpVirtioUser4kPages(TestCase): ports=[self.pci_info], vdevs=[vdev], ) - command_line_client = testcmd + eal_params + " -m 1024 --no-huge" + para + command_line_client = testcmd + eal_params + para self.vhost_user.send_expect(command_line_client, "testpmd> ", 120) self.vhost_user.send_expect("start", "testpmd> ", 120) -- 2.34.1