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 0A09AA00BE; Mon, 27 Apr 2020 07:37:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C5F541BF26; Mon, 27 Apr 2020 07:37:33 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 6607D1BED9 for ; Mon, 27 Apr 2020 07:37:32 +0200 (CEST) IronPort-SDR: gMX6UCsYXuVDxAyu8SqTakB3JUTiECHjfoPZ8DrjyPttOAkTDtHygSTXRkycRD62Yi3CosHJow ufUbQByQGhWQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2020 22:37:31 -0700 IronPort-SDR: V8/UL52wfXRqOVPw3/VMbXcX0g2Dxre0EhQwvolHev5VM9UX8xP5jUYa8U6s5p3CNt+I+f87Z0 sX3a7JVZqWkQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,322,1583222400"; d="scan'208";a="275324282" Received: from unknown (HELO dpdk-wenjielx-dtspatch135.sh.intel.com) ([10.240.183.135]) by orsmga002.jf.intel.com with ESMTP; 26 Apr 2020 22:37:30 -0700 From: xizhan4x To: dts@dpdk.org Cc: xizhan4x Date: Mon, 27 Apr 2020 13:43:32 +0800 Message-Id: <1587966212-50951-1-git-send-email-xix.zhang@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/TestSuite_external_memory:ubuntu 20.04 lsmod Don't show vfio-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" ubuntu 20.04 lsmod Don't show vfio-pci Signed-off-by: xizhan4x --- tests/TestSuite_external_memory.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/TestSuite_external_memory.py b/tests/TestSuite_external_memory.py index 9a75427..1623054 100644 --- a/tests/TestSuite_external_memory.py +++ b/tests/TestSuite_external_memory.py @@ -81,6 +81,8 @@ class TestExternalMemory(TestCase): self.dut.send_expect("modprobe vfio", "#", 10) self.dut.send_expect("modprobe vfio_pci", "#", 10) out = self.dut.send_expect("lsmod | grep vfio_iommu_type1", "#") + if not out: + out = self.dut.send_expect("ls /sys/module |grep vfio_pci", "#") assert ("vfio_pci" in out), "Failed to insmod vfio_pci" self.dut.bind_interfaces_linux(driver="vfio-pci") -- 2.17.2