From 7fd15e54115e6483a20c05e045d8dfe1883522bf Mon Sep 17 00:00:00 2001 From: Laurent Bonnans Date: Thu, 21 Mar 2019 17:30:55 +0100 Subject: Add oe-selftest for aktualizr ptest run on qemu Signed-off-by: Laurent Bonnans --- lib/oeqa/selftest/cases/testutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/oeqa/selftest/cases/testutils.py') 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): pass -def qemu_send_command(port, command): +def qemu_send_command(port, command, timeout=60): command = ['ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@localhost -p ' + str(port) + ' "' + command + '"'] s2 = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - stdout, stderr = s2.communicate(timeout=60) + stdout, stderr = s2.communicate(timeout=timeout) return stdout, stderr, s2.returncode -- cgit v1.2.3-54-g00ecf