diff options
| -rw-r--r-- | meta/lib/oeqa/core/target/ssh.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/target/ssh.py b/meta/lib/oeqa/core/target/ssh.py index 764ec339a0..1cd496c2f4 100644 --- a/meta/lib/oeqa/core/target/ssh.py +++ b/meta/lib/oeqa/core/target/ssh.py | |||
| @@ -262,6 +262,7 @@ def SSHCall(command, logger, timeout=None, **opts): | |||
| 262 | time.sleep(5) | 262 | time.sleep(5) |
| 263 | try: | 263 | try: |
| 264 | process.kill() | 264 | process.kill() |
| 265 | process.wait() | ||
| 265 | except OSError: | 266 | except OSError: |
| 266 | logger.debug('OSError when killing process') | 267 | logger.debug('OSError when killing process') |
| 267 | pass | 268 | pass |
| @@ -284,6 +285,7 @@ def SSHCall(command, logger, timeout=None, **opts): | |||
| 284 | except TimeoutExpired: | 285 | except TimeoutExpired: |
| 285 | try: | 286 | try: |
| 286 | process.kill() | 287 | process.kill() |
| 288 | process.wait() | ||
| 287 | except OSError: | 289 | except OSError: |
| 288 | logger.debug('OSError') | 290 | logger.debug('OSError') |
| 289 | pass | 291 | pass |
| @@ -313,6 +315,7 @@ def SSHCall(command, logger, timeout=None, **opts): | |||
| 313 | # whilst running and ensure we don't leave a process behind. | 315 | # whilst running and ensure we don't leave a process behind. |
| 314 | if process.poll() is None: | 316 | if process.poll() is None: |
| 315 | process.kill() | 317 | process.kill() |
| 318 | process.wait() | ||
| 316 | logger.debug('Something went wrong, killing SSH process') | 319 | logger.debug('Something went wrong, killing SSH process') |
| 317 | raise | 320 | raise |
| 318 | 321 | ||
