Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix the TLDK test scripts execute path issue.
[csit.git]
/
resources
/
libraries
/
python
/
QemuUtils.py
diff --git
a/resources/libraries/python/QemuUtils.py
b/resources/libraries/python/QemuUtils.py
index
1664b0b
..
cbdfe85
100644
(file)
--- a/
resources/libraries/python/QemuUtils.py
+++ b/
resources/libraries/python/QemuUtils.py
@@
-545,7
+545,7
@@
class QemuUtils(object):
try:
self._wait_until_vm_boot()
except (RuntimeError, SSHTimeout):
try:
self._wait_until_vm_boot()
except (RuntimeError, SSHTimeout):
- self.qemu_kill()
+ self.qemu_kill
_all
()
self.qemu_clear_socks()
raise
# Update interface names in VM node dict
self.qemu_clear_socks()
raise
# Update interface names in VM node dict
@@
-592,6
+592,11
@@
class QemuUtils(object):
self._ssh.exec_command_sudo(cmd)
def qemu_kill_all(self, node=None):
self._ssh.exec_command_sudo(cmd)
def qemu_kill_all(self, node=None):
+ """Kill all qemu processes on DUT node if specified.
+
+ :param node: Node to kill all QEMU processes on.
+ :type node: dict
+ """
if node:
self.qemu_set_node(node)
self._ssh.exec_command_sudo('pkill -SIGKILL qemu')
if node:
self.qemu_set_node(node)
self._ssh.exec_command_sudo('pkill -SIGKILL qemu')