From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 76B74952 for ; Tue, 22 Dec 2015 04:19:40 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 21 Dec 2015 19:19:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,462,1444719600"; d="scan'208";a="712465979" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by orsmga003.jf.intel.com with ESMTP; 21 Dec 2015 19:19:38 -0800 From: "xu,huilong" To: dts@dpdk.org Date: Tue, 22 Dec 2015 11:15:11 +0800 Message-Id: <1450754112-91268-2-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1450754112-91268-1-git-send-email-huilongx.xu@intel.com> References: <1450754112-91268-1-git-send-email-huilongx.xu@intel.com> Subject: [dts] [PATCH V1 2/3] remove auto_portmap parameter 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: Tue, 22 Dec 2015 03:19:40 -0000 remove auto_portmap parameter when init virt dut. because set portmap by crete_portmap function Signed-off-by: xu,huilong --- framework/virt_base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/virt_base.py b/framework/virt_base.py index 4a445d1..1d0c282 100644 --- a/framework/virt_base.py +++ b/framework/virt_base.py @@ -224,7 +224,7 @@ class VirtBase(object): self.load_global_config() self.load_local_config(self.suite) - def start(self, load_config=True, set_target=True, cpu_topo='', auto_portmap=True, bind_dev=True): + def start(self, load_config=True, set_target=True, cpu_topo='', bind_dev=True): """ Start VM and instantiate the VM with VirtDut. """ @@ -238,7 +238,7 @@ class VirtBase(object): self._start_vm() # connect vm dut and init running environment - vm_dut = self.instantiate_vm_dut(set_target, cpu_topo, auto_portmap) + vm_dut = self.instantiate_vm_dut(set_target, cpu_topo) except Exception as vm_except: if self.handle_exception(vm_except): print dts.RED("Handled expection " + str(type(vm_except))) @@ -293,7 +293,7 @@ class VirtBase(object): """ NotImplemented - def instantiate_vm_dut(self, set_target=True, cpu_topo='', auto_portmap=True, bind_dev=True): + def instantiate_vm_dut(self, set_target=True, cpu_topo='', bind_dev=True): """ Instantiate the Dut class for VM. """ @@ -341,7 +341,7 @@ class VirtBase(object): try: # setting up dpdk in vm, must call at last - vm_dut.prerequisites(dts.Package, dts.Patches, auto_portmap) + vm_dut.prerequisites(dts.Package, dts.Patches) if set_target: target = self.host_dut.target vm_dut.set_target(target, bind_dev) -- 1.9.3