mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-27 15:33:28 +08:00
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 <brandon.maier@collins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
5ed1fab018
commit
95e1043013
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user