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 99F009AE7 for ; Tue, 21 Jun 2016 11:27:25 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 21 Jun 2016 02:27:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,503,1459839600"; d="scan'208";a="1002165062" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga002.jf.intel.com with ESMTP; 21 Jun 2016 02:27:01 -0700 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id u5L9Qww1003133; Tue, 21 Jun 2016 17:26:58 +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 u5L9Qt8a016436; Tue, 21 Jun 2016 17:26:58 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id u5L9Qt2H016432; Tue, 21 Jun 2016 17:26:55 +0800 From: Marvin Liu To: dts@dpdk.org Cc: Marvin Liu Date: Tue, 21 Jun 2016 17:26:51 +0800 Message-Id: <1466501212-16369-2-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1466501212-16369-1-git-send-email-yong.liu@intel.com> References: <1466501212-16369-1-git-send-email-yong.liu@intel.com> Subject: [dts] [PATCH v2 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 09:27:26 -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