Fix StatefulConnection to not to fail on exit
Some of the images require `tail` process to be explicitly stopped
after the `tail -f ... | nc ...` command has been executed and `nc`
process is finished. But most of the time `tail` process is ended
automatically that leads to fail of `killall tail` command.
Change-Id: I43c0b7781ca2ed98156e125566115196aab530cf
diff --git a/neutron_tempest_plugin/common/utils.py b/neutron_tempest_plugin/common/utils.py
index 1526ecf..898e4b9 100644
--- a/neutron_tempest_plugin/common/utils.py
+++ b/neutron_tempest_plugin/common/utils.py
@@ -204,6 +204,8 @@
def __exit__(self, type, value, traceback):
self.server_ssh.exec_command('sudo killall nc || killall nc')
- self.server_ssh.exec_command('sudo killall tail || killall tail')
+ self.server_ssh.exec_command(
+ 'sudo killall tail || killall tail || echo "True"')
self.client_ssh.exec_command('sudo killall nc || killall nc')
- self.client_ssh.exec_command('sudo killall tail || killall tail')
+ self.client_ssh.exec_command(
+ 'sudo killall tail || killall tail || echo "True"')