mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-25 11:30:37 -09: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>
(cherry picked from commit 95e1043013)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
61855e0bc7
commit
8b83136326
@@ -137,6 +137,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',
|
||||
|
||||
Reference in New Issue
Block a user