From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 6E158ADB0 for ; Tue, 21 Jun 2016 09:21:10 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP; 21 Jun 2016 00:21:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,502,1459839600"; d="scan'208";a="722692868" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by FMSMGA003.fm.intel.com with ESMTP; 21 Jun 2016 00:21:09 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id u5L7L7C4009757; Tue, 21 Jun 2016 15:21:07 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id u5L7L48i015562; Tue, 21 Jun 2016 15:21:06 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id u5L7L4IM015558; Tue, 21 Jun 2016 15:21:04 +0800 From: Marvin Liu To: dts@dpdk.org Cc: Marvin Liu Date: Tue, 21 Jun 2016 15:20:57 +0800 Message-Id: <1466493658-15519-2-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1466493658-15519-1-git-send-email-yong.liu@intel.com> References: <1466493658-15519-1-git-send-email-yong.liu@intel.com> Subject: [dts] [PATCH 1/2] framework: crb add stage variable for demonstrate status 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, 21 Jun 2016 07:21:10 -0000 After created session between crb, stage will be "pre-init". When crb has been setup for dpdk running, stage will be "post-init". Signed-off-by: Marvin Liu diff --git a/framework/crb.py b/framework/crb.py index 3194f69..b302a76 100644 --- a/framework/crb.py +++ b/framework/crb.py @@ -57,6 +57,7 @@ class Crb(object): self.serializer = serializer self.ports_info = None self.sessions = [] + self.stage = 'pre-init' self.logger = getLogger(name) self.session = SSHConnection(self.get_ip_address(), name, diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py index 2560bd7..05930ad 100644 --- a/framework/project_dpdk.py +++ b/framework/project_dpdk.py @@ -260,6 +260,7 @@ class DPDKdut(Dut): """ self.prepare_package(pkgName, patch) self.dut_prerequisites() + self.stage = "post-init" def extra_nic_setup(self): """ @@ -399,6 +400,8 @@ class DPDKtester(Tester): assert ("No such file or directory" not in out), "Can not find /root/igb_uio.ko for performance" self.setup_memory() + self.stage = "post-init" + def setup_memory(self, hugepages=-1): """ Setup hugepage on tester. -- 1.9.3