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
committerLaurent Bonnans <laurent.bonnans@here.com>2019-04-09 14:33:14 +0200
commitf47d2d8deeccb56f839035c383c68da6558c5d9c (patch)
tree1b17fd799b3cba55a30aa004757a84be194a7e1d /lib/oeqa/selftest/cases/testutils.py
parent121bb090d7336c8a9180f9908fb011adda05f70c (diff)
downloadmeta-updater-f47d2d8deeccb56f839035c383c68da6558c5d9c.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