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 C7E05A0583; Fri, 20 Mar 2020 09:38:34 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 915532BBD; Fri, 20 Mar 2020 09:38:34 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 119F92BB9 for ; Fri, 20 Mar 2020 09:38:32 +0100 (CET) IronPort-SDR: gTAXZ679RVihvE4iVMRxhAbEabXLN74jUSWpOYkFeNfDSfaubTk5GtcPZCS7CzG13ine+NplXZ C2+JcpHOf/Uw== 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:31 -0700 IronPort-SDR: K7orWk1FEMQUbsMGM32MRNqfB/Ivhn4FVPHqXW/vE+3hRx02uIA8tlHEFw5ySfcjyG0d2dvVLL 3kl3RYptytwQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,283,1580803200"; d="scan'208";a="264006571" 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:29 -0700 From: Zeng Xiaoxiao To: dts@dpdk.org Cc: Zeng Xiaoxiao Date: Fri, 20 Mar 2020 16:37:26 +0800 Message-Id: <1584693446-35164-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