X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FQemuUtils.py;h=cbdfe856f051abbffd9ad1b143fb4d91700a1e7b;hp=1664b0b916f03bea14cf815159abfdd9ef978dea;hb=9a261ea61549fc6a5c23369d2e236b002dc35038;hpb=0fc813b1694a6ae70b759e7ca96741f21f81b051 diff --git a/resources/libraries/python/QemuUtils.py b/resources/libraries/python/QemuUtils.py index 1664b0b916..cbdfe856f0 100644 --- 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): - self.qemu_kill() + self.qemu_kill_all() 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): + """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')