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 243e45dd99..72ed1adbf8 100644 --- a/meta/lib/oeqa/core/target/ssh.py +++ b/meta/lib/oeqa/core/target/ssh.py | |||
| @@ -265,6 +265,7 @@ def SSHCall(command, logger, timeout=None, **opts): | |||
| 265 | time.sleep(5) | 265 | time.sleep(5) |
| 266 | try: | 266 | try: |
| 267 | process.kill() | 267 | process.kill() |
| 268 | process.wait() | ||
| 268 | except OSError: | 269 | except OSError: |
| 269 | logger.debug('OSError when killing process') | 270 | logger.debug('OSError when killing process') |
| 270 | pass | 271 | pass |
| @@ -287,6 +288,7 @@ def SSHCall(command, logger, timeout=None, **opts): | |||
| 287 | except TimeoutExpired: | 288 | except TimeoutExpired: |
| 288 | try: | 289 | try: |
| 289 | process.kill() | 290 | process.kill() |
| 291 | process.wait() | ||
| 290 | except OSError: | 292 | except OSError: |
| 291 | logger.debug('OSError') | 293 | logger.debug('OSError') |
| 292 | pass | 294 | pass |
| @@ -316,6 +318,7 @@ def SSHCall(command, logger, timeout=None, **opts): | |||
| 316 | # whilst running and ensure we don't leave a process behind. | 318 | # whilst running and ensure we don't leave a process behind. |
| 317 | if process.poll() is None: | 319 | if process.poll() is None: |
| 318 | process.kill() | 320 | process.kill() |
| 321 | process.wait() | ||
| 319 | logger.debug('Something went wrong, killing SSH process') | 322 | logger.debug('Something went wrong, killing SSH process') |
| 320 | raise | 323 | raise |
| 321 | 324 | ||
