From: Marvin Liu <yong.liu@intel.com>
To: dts@dpdk.org
Cc: Marvin Liu <yong.liu@intel.com>
Subject: [dts] [PATCH 1/2] framework: crb add stage variable for demonstrate status
Date: Tue, 21 Jun 2016 15:20:57 +0800 [thread overview]
Message-ID: <1466493658-15519-2-git-send-email-yong.liu@intel.com> (raw)
In-Reply-To: <1466493658-15519-1-git-send-email-yong.liu@intel.com>
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 <yong.liu@intel.com>
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
next prev parent reply other threads:[~2016-06-21 7:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-21 7:20 [dts] [PATCH 0/2] support user input commands in different stage Marvin Liu
2016-06-21 7:20 ` Marvin Liu [this message]
2016-06-21 7:20 ` [dts] [PATCH 2/2] framework: support execute user input command Marvin Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1466493658-15519-2-git-send-email-yong.liu@intel.com \
--to=yong.liu@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).