diff options
Diffstat (limited to 'lib/oeqa/selftest/cases/testutils.py')
| -rw-r--r-- | lib/oeqa/selftest/cases/testutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oeqa/selftest/cases/testutils.py b/lib/oeqa/selftest/cases/testutils.py index 90ba653..2ad99ad 100644 --- a/lib/oeqa/selftest/cases/testutils.py +++ b/lib/oeqa/selftest/cases/testutils.py | |||
| @@ -52,11 +52,11 @@ def qemu_terminate(s): | |||
| 52 | pass | 52 | pass |
| 53 | 53 | ||
| 54 | 54 | ||
| 55 | def qemu_send_command(port, command): | 55 | def qemu_send_command(port, command, timeout=60): |
| 56 | command = ['ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@localhost -p ' + | 56 | command = ['ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@localhost -p ' + |
| 57 | str(port) + ' "' + command + '"'] | 57 | str(port) + ' "' + command + '"'] |
| 58 | s2 = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) | 58 | s2 = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) |
| 59 | stdout, stderr = s2.communicate(timeout=60) | 59 | stdout, stderr = s2.communicate(timeout=timeout) |
| 60 | return stdout, stderr, s2.returncode | 60 | return stdout, stderr, s2.returncode |
| 61 | 61 | ||
| 62 | 62 | ||
