From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id ED5C75A24 for ; Tue, 22 Dec 2015 07:05:45 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP; 21 Dec 2015 22:05:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,463,1444719600"; d="scan'208";a="878789149" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.238.55.12]) by fmsmga002.fm.intel.com with ESMTP; 21 Dec 2015 22:05:44 -0800 From: "xu,huilong" To: dts@dpdk.org Date: Tue, 22 Dec 2015 14:01:17 +0800 Message-Id: <1450764078-91540-2-git-send-email-huilongx.xu@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1450764078-91540-1-git-send-email-huilongx.xu@intel.com> References: <1450764078-91540-1-git-send-email-huilongx.xu@intel.com> Subject: [dts] [PATCH V2 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 06:05:46 -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