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 B9D802BE6 for ; Tue, 9 Aug 2016 09:47:43 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 09 Aug 2016 00:47:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,493,1464678000"; d="scan'208";a="1037744044" Received: from unknown (HELO dpdk-fedora20.icx.intel.com) ([10.239.254.239]) by fmsmga002.fm.intel.com with ESMTP; 09 Aug 2016 00:47:34 -0700 From: Lijuan Tu To: dts@dpdk.org Cc: Lijuan Tu Date: Tue, 9 Aug 2016 15:43:09 +0800 Message-Id: <1470728589-5075-1-git-send-email-lijuanx.a.tu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [next]virt: fix attribute and argument error 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, 09 Aug 2016 07:47:44 -0000 Signed-off-by: Lijuan Tu --- framework/virt_base.py | 7 ++++--- framework/virt_dut.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/framework/virt_base.py b/framework/virt_base.py index e6a6d08..78e3334 100644 --- a/framework/virt_base.py +++ b/framework/virt_base.py @@ -364,9 +364,10 @@ class VirtBase(object): skip_setup = self.host_dut.skip_setup base_dir = self.host_dut.base_dir vm_dut.set_speedup_options(read_cache, skip_setup) - func_only = self.host_dut.want_func_tests - perf_only = self.host_dut.want_perf_tests - vm_dut.set_test_types(func_tests=func_only, perf_tests=perf_only) + + # package and patch should be set before prerequisites + vm_dut.set_package(self.host_dut.package, self.host_dut.patches) + # base_dir should be set before prerequisites vm_dut.set_directory(base_dir) diff --git a/framework/virt_dut.py b/framework/virt_dut.py index e13c48c..348279d 100644 --- a/framework/virt_dut.py +++ b/framework/virt_dut.py @@ -150,7 +150,7 @@ class VirtDut(DPDKdut): At last setup DUT' environment for validation. """ if not self.skip_setup: - self.prepare_package(pkgName, patch) + self.prepare_package() self.send_expect("cd %s" % self.base_dir, "# ") self.send_expect("alias ls='ls --color=none'", "#") -- 1.9.3