From: Yong Liu <yong.liu@intel.com>
To: dts@dpdk.org
Subject: [dts] [PATCH 4/5] Add session close function in virt_dut module.
Date: Thu, 4 Jun 2015 14:28:38 +0800 [thread overview]
Message-ID: <1433399319-2314-5-git-send-email-yong.liu@intel.com> (raw)
In-Reply-To: <1433399319-2314-1-git-send-email-yong.liu@intel.com>
From: Marvin Liu <yong.liu@intel.com>
Signed-off-by: Marvin Liu <yong.liu@intel.com>
diff --git a/framework/virt_dut.py b/framework/virt_dut.py
index b087220..b52109d 100644
--- a/framework/virt_dut.py
+++ b/framework/virt_dut.py
@@ -79,6 +79,12 @@ class VirtDut(DPDKdut):
self.ports_map = []
self.virttype = virttype
+ def close_sessions(self):
+ if self.session:
+ self.session.close()
+ if self.alt_session:
+ self.alt_session.close()
+
def set_nic_type(self, nic_type):
"""
Set CRB NICS ready to validated.
@@ -122,12 +128,16 @@ class VirtDut(DPDKdut):
Then call pci scan function to collect nic device information.
At last setup DUT' environment for validation.
"""
- self.prepare_package(pkgName, patch)
+ if not self.skip_setup:
+ self.prepare_package(pkgName, patch)
self.send_expect("cd %s" % self.base_dir, "# ")
- self.host_session.send_expect("cd %s" % self.base_dir, "# ")
self.send_expect("alias ls='ls --color=none'", "#")
+ if self.get_os_type() == 'freebsd':
+ self.send_expect('alias make=gmake', '# ')
+ self.send_expect('alias sed=gsed', '# ')
+
self.init_core_list()
self.pci_devices_information()
--
1.9.3
next prev parent reply other threads:[~2015-06-04 6:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-04 6:28 [dts] [PATCH 0/5] Optimize virtualization automation framework Yong Liu
2015-06-04 6:28 ` [dts] [PATCH 1/5] Add virttype parameter into virtual machine instantiation Yong Liu
2015-06-04 6:28 ` [dts] [PATCH 2/5] Change virtual machine default directory to host base_dir Yong Liu
2015-06-04 6:28 ` [dts] [PATCH 3/5] Optimize qemu kvm module functions and code style Yong Liu
2015-06-04 6:28 ` Yong Liu [this message]
2015-06-04 6:28 ` [dts] [PATCH 5/5] Support dynamic load test case in debug mode. Use can use "rerun" command to re-run the interrupted case Yong 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=1433399319-2314-5-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).