From ca58559fc30842c123907fb5cc68b3356c530862 Mon Sep 17 00:00:00 2001 From: André Draszik Date: Thu, 12 Dec 2019 21:52:11 +0000 Subject: oeqa/target/ssh oeqa/target/qemu: expose server listening port to tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow tests to access the listening port as just introduced. Note that when using qemu this infrastructure shouldn't be needed, but we still need to set the port to 0 so that a listening port is determined automatically (e.g. by the python http server). Signed-off-by: André Draszik Signed-off-by: Richard Purdie --- meta/lib/oeqa/core/target/qemu.py | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/lib/oeqa/core/target/qemu.py') diff --git a/meta/lib/oeqa/core/target/qemu.py b/meta/lib/oeqa/core/target/qemu.py index 081c627b01..758703c0d1 100644 --- a/meta/lib/oeqa/core/target/qemu.py +++ b/meta/lib/oeqa/core/target/qemu.py @@ -24,6 +24,7 @@ class OEQemuTarget(OESSHTarget): user, port) self.server_ip = server_ip + self.server_port = 0 self.machine = machine self.rootfs = rootfs self.kernel = kernel -- cgit 1.2.3-korg