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 CE0FBA0583; Fri, 20 Mar 2020 09:38:38 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B93ED1C024; Fri, 20 Mar 2020 09:38:38 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id D85F82BB9 for ; Fri, 20 Mar 2020 09:38:36 +0100 (CET) IronPort-SDR: RJF3+UQOuXeMJb0OlY2pU/a/K6r7GN3Tk/YOamiYFqIIEV4R/UBbtceRVKtysN7oUTTLFgDxtN pJ+HPKKQHezw== 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; 20 Mar 2020 01:38:36 -0700 IronPort-SDR: XsfHjEP9O1eSNuHk2T7ECyLxptVr1NHXe+2rJyzoKq8UYrJ+oQhTkTjAgf2r2/oefhx0FDDunf GhUgPH14YRmA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,283,1580803200"; d="scan'208";a="264006583" Received: from unknown (HELO dpdk-xiaoqimai-tester.sh.intel.com) ([10.240.183.156]) by orsmga002.jf.intel.com with ESMTP; 20 Mar 2020 01:38:35 -0700 From: Zeng Xiaoxiao To: dts@dpdk.org Cc: Zeng Xiaoxiao Date: Fri, 20 Mar 2020 16:37:31 +0800 Message-Id: <1584693451-35213-1-git-send-email-xiaoxiaox.zeng@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dts] [PATCH V2]tests/shutdown_api: fix can't create vf 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" Signed-off-by: Zeng Xiaoxiao --- tests/TestSuite_shutdown_api.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py index 11d451b..8699e79 100644 --- a/tests/TestSuite_shutdown_api.py +++ b/tests/TestSuite_shutdown_api.py @@ -260,6 +260,7 @@ class TestShutdownApi(TestCase): self.vf_assign_method = 'vfio-pci' self.dut.send_expect('modprobe vfio-pci', '#') + self.dut.setup_modules_linux(self.target, 'igb_uio', '') self.bind_nic_driver(self.dut_ports[:1], driver="igb_uio") self.used_dut_port = self.dut_ports[0] tester_port = self.tester.get_local_port(self.used_dut_port) @@ -296,6 +297,7 @@ class TestShutdownApi(TestCase): self.vm_env_done = True self.dut_testpmd.quit() + self.bind_nic_driver(self.dut_ports[:1], driver=self.vf_driver) def destroy_vm_env(self): if not self.vm_env_done: @@ -539,6 +541,7 @@ class TestShutdownApi(TestCase): self.dut_testpmd.quit() time.sleep(3) self.vm0_dut.kill_all() + self.destroy_vm_env() def test_enable_disablejumbo(self): """ @@ -764,5 +767,6 @@ class TestShutdownApi(TestCase): """ Run after each test suite. """ + if self.vm_env_done: + self.destroy_vm_env() self.dut.kill_all() - self.destroy_vm_env() -- 1.8.3.1