summaryrefslogtreecommitdiffstats
path: root/lib/oeqa/selftest/cases/testutils.py
diff options
context:
space:
mode:
authorLaurent Bonnans <laurent.bonnans@here.com>2019-03-21 17:30:55 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2019-04-29 09:57:56 +0200
commit79383e9d8023307f4e0f085794a312a286bf0e0b (patch)
tree1a42f41b4ae463ca073804d2d5a62d847abdf941 /lib/oeqa/selftest/cases/testutils.py
parent054e56ff57b86fb0e6cf3ed84d07e237b64b1cb5 (diff)
downloadmeta-updater-79383e9d8023307f4e0f085794a312a286bf0e0b.tar.gz
Add oe-selftest for aktualizr ptest run on qemu
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Diffstat (limited to 'lib/oeqa/selftest/cases/testutils.py')
-rw-r--r--lib/oeqa/selftest/cases/testutils.py4
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
55def qemu_send_command(port, command): 55def 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