From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 46F071B20D for ; Wed, 1 Nov 2017 07:12:31 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Oct 2017 23:12:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,327,1505804400"; d="scan'208";a="1031955721" Received: from yuweizh1-mobl2.ccr.corp.intel.com ([10.67.68.41]) by orsmga003.jf.intel.com with ESMTP; 31 Oct 2017 23:12:29 -0700 From: Yuwei Zhang To: dts@dpdk.org Cc: Yuwei Zhang Date: Wed, 1 Nov 2017 14:12:27 +0800 Message-Id: <20171101061227.14812-1-yuwei1.zhang@intel.com> X-Mailer: git-send-email 2.14.1.windows.1 Subject: [dts] [PATCH V1] modprobe vfio-pci driver in vf related test suite. 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: , X-List-Received-Date: Wed, 01 Nov 2017 06:12:32 -0000 Signed-off-by: Yuwei Zhang --- tests/TestSuite_vf_jumboframe.py | 1 + tests/TestSuite_vf_macfilter.py | 2 +- tests/TestSuite_vf_offload.py | 2 +- tests/TestSuite_vf_packet_rxtx.py | 1 + tests/TestSuite_vf_port_start_stop.py | 2 +- tests/TestSuite_vf_to_vf_nic_bridge.py | 1 + tests/TestSuite_vf_vlan.py | 1 + 7 files changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/TestSuite_vf_jumboframe.py b/tests/TestSuite_vf_jumboframe.py index 7a62a50..fc4971b 100644 --- a/tests/TestSuite_vf_jumboframe.py +++ b/tests/TestSuite_vf_jumboframe.py @@ -43,6 +43,7 @@ class TestVfJumboFrame(TestCase): self.vf_assign_method = 'pci-assign' else: self.vf_assign_method = 'vfio-pci' + self.dut.send_expect('modprobe vfio-pci', '#') # enable tester mtu tester_port = self.tester.get_local_port(self.port) diff --git a/tests/TestSuite_vf_macfilter.py b/tests/TestSuite_vf_macfilter.py index ec290a7..23105a4 100644 --- a/tests/TestSuite_vf_macfilter.py +++ b/tests/TestSuite_vf_macfilter.py @@ -30,7 +30,7 @@ class TestVfMacFilter(TestCase): self.vf_assign_method = 'pci-assign' else: self.vf_assign_method = 'vfio-pci' - self.tester.send_expect('modprobe vfio-pci', '#') + self.dut.send_expect('modprobe vfio-pci', '#') def set_up(self): diff --git a/tests/TestSuite_vf_offload.py b/tests/TestSuite_vf_offload.py index 2cb402b..61ef453 100644 --- a/tests/TestSuite_vf_offload.py +++ b/tests/TestSuite_vf_offload.py @@ -32,7 +32,7 @@ class TestVfOffload(TestCase): self.vf_assign_method = 'pci-assign' else: self.vf_assign_method = 'vfio-pci' - self.tester.send_expect('modprobe vfio-pci', '#') + self.dut.send_expect('modprobe vfio-pci', '#') self.setup_2pf_2vf_1vm_env_flag = 0 self.setup_2pf_2vf_1vm_env(driver='') diff --git a/tests/TestSuite_vf_packet_rxtx.py b/tests/TestSuite_vf_packet_rxtx.py index 56d618c..83ccf1e 100644 --- a/tests/TestSuite_vf_packet_rxtx.py +++ b/tests/TestSuite_vf_packet_rxtx.py @@ -30,6 +30,7 @@ class TestVfPacketRxtx(TestCase): self.vf_assign_method = 'pci-assign' else: self.vf_assign_method = 'vfio-pci' + self.tester.send_expect('modprobe vfio-pci', '#') diff --git a/tests/TestSuite_vf_port_start_stop.py b/tests/TestSuite_vf_port_start_stop.py index 5629f8c..3ebee73 100644 --- a/tests/TestSuite_vf_port_start_stop.py +++ b/tests/TestSuite_vf_port_start_stop.py @@ -32,7 +32,7 @@ class TestVfPortStartStop(TestCase): self.vf_assign_method = 'pci-assign' else: self.vf_assign_method = 'vfio-pci' - self.tester.send_expect('modprobe vfio-pci', '#') + self.dut.send_expect('modprobe vfio-pci', '#') def set_up(self): diff --git a/tests/TestSuite_vf_to_vf_nic_bridge.py b/tests/TestSuite_vf_to_vf_nic_bridge.py index c5b1cb6..a85cab5 100644 --- a/tests/TestSuite_vf_to_vf_nic_bridge.py +++ b/tests/TestSuite_vf_to_vf_nic_bridge.py @@ -66,6 +66,7 @@ class TestVF2VFBridge(TestCase): self.vf_assign_method = 'pci-assign' else: self.vf_assign_method = 'vfio-pci' + self.dut.send_expect('modprobe vfio-pci', '#') def set_up(self): diff --git a/tests/TestSuite_vf_vlan.py b/tests/TestSuite_vf_vlan.py index ab64a15..f087011 100644 --- a/tests/TestSuite_vf_vlan.py +++ b/tests/TestSuite_vf_vlan.py @@ -34,6 +34,7 @@ class TestVfVlan(TestCase): self.vf_assign_method = 'pci-assign' else: self.vf_assign_method = 'vfio-pci' + self.dut.send_expect('modprobe vfio-pci', '#') def set_up(self): -- 2.14.1.windows.1