Browse Source

Force the kill of the "nc" process only if timeout

If the file is received correctly, the "nc" process in the remote
machine will end gracefully. Only in case of socket timeout, will force
the completion of the process before returning.

Change-Id: I6cec868daa0139f6a49807883f901d2eac84fe14
Related-Bug: #1838068
tags/0.5.0^0
Rodolfo Alonso Hernandez 1 month ago
parent
commit
31993d50fd
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      neutron_tempest_plugin/scenario/test_qos.py

+ 1
- 1
neutron_tempest_plugin/scenario/test_qos.py View File

@@ -130,10 +130,10 @@ class QoSTestMixin(object):
130 130
         except socket.timeout:
131 131
             LOG.warning('Socket timeout while reading the remote file, bytes '
132 132
                         'read: %s', total_bytes_read)
133
+            self._kill_nc_process(ssh_client)
133 134
             return False
134 135
         finally:
135 136
             client_socket.close()
136
-            self._kill_nc_process(ssh_client)
137 137
 
138 138
     def _create_ssh_client(self):
139 139
         return ssh.Client(self.fip['floating_ip_address'],

Loading…
Cancel
Save