From 95e10430131fb524a27985b82ee70ae8d0fe71d9 Mon Sep 17 00:00:00 2001 From: Brandon Maier Date: Mon, 15 Jul 2024 14:50:39 +0000 Subject: [PATCH] support/testing/infra/emulator.py: support init=/bin/sh The TestInitSystemNone bypasses the normal init and instead launches directly into a shell. So it needs to bypass the login code and go directly to a shell. Signed-off-by: Brandon Maier Signed-off-by: Thomas Petazzoni --- support/testing/infra/emulator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/support/testing/infra/emulator.py b/support/testing/infra/emulator.py index 950843e37d..be26d4caa4 100644 --- a/support/testing/infra/emulator.py +++ b/support/testing/infra/emulator.py @@ -133,6 +133,9 @@ class Emulator(object): self.qemu.expect("Password:") self.qemu.sendline(password) + self.connect_shell() + + def connect_shell(self): extra_init_cmd = " && ".join([ 'export PAGER=cat', 'dmesg -n 1',