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 8F738A00BE; Mon, 27 Apr 2020 09:52:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 852B41C139; Mon, 27 Apr 2020 09:52:14 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id C7CD31BF8E for ; Mon, 27 Apr 2020 09:52:12 +0200 (CEST) IronPort-SDR: PPbRW+IlLD9hxGnfTOitprTCghncnk9PbtYsiXXccFuPTvhv20ZAxHJn5GSrokhVLQJPX/SBDm qzZo+5QGK/3w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Apr 2020 00:52:11 -0700 IronPort-SDR: G+3cxPaaKncwe/XjA8eMIviRQaJP0HMD+fXCvEpCVQYz8vvMfEyqZCltYPuYDmaq58NTlQtKHA qOg+bmJCUPQQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,323,1583222400"; d="scan'208";a="275358990" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga002.jf.intel.com with ESMTP; 27 Apr 2020 00:51:59 -0700 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Apr 2020 00:51:58 -0700 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.439.0; Mon, 27 Apr 2020 00:51:58 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.129]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.22]) with mapi id 14.03.0439.000; Mon, 27 Apr 2020 15:51:56 +0800 From: "Tu, Lijuan" To: "Zhang, XiX" , "dts@dpdk.org" CC: "Zhang, XiX" Thread-Topic: [dts] [PATCH V1] tests/TestSuite_external_memory:ubuntu 20.04 lsmod Don't show vfio-pci Thread-Index: AQHWHFYDcsRZ0yXXeU29mlqyDWsjfaiMmMPg Date: Mon, 27 Apr 2020 07:51:56 +0000 Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0BC12B7E@SHSMSX101.ccr.corp.intel.com> References: <1587966212-50951-1-git-send-email-xix.zhang@intel.com> In-Reply-To: <1587966212-50951-1-git-send-email-xix.zhang@intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [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" Applied, thanks > -----Original Message----- > From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xizhan4x > Sent: Monday, April 27, 2020 1:44 PM > To: dts@dpdk.org > Cc: Zhang, XiX > Subject: [dts] [PATCH V1] tests/TestSuite_external_memory:ubuntu 20.04 > lsmod Don't show vfio-pci >=20 > ubuntu 20.04 lsmod Don't show vfio-pci >=20 > Signed-off-by: xizhan4x > --- > tests/TestSuite_external_memory.py | 2 ++ > 1 file changed, 2 insertions(+) >=20 > 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 =3D self.dut.send_expect("lsmod | grep vfio_iommu_type1"= , "#") > + if not out: > + out =3D self.dut.send_expect("ls /sys/module |grep vfio_= pci", "#") > assert ("vfio_pci" in out), "Failed to insmod vfio_pci" >=20 > self.dut.bind_interfaces_linux(driver=3D"vfio-pci") > -- > 2.17.2