From: Brandon Maier via buildroot <buildroot@buildroot.org>
To: buildroot@buildroot.org
Cc: Brandon Maier <brandon.maier@collins.com>,
Ricardo Martincoski <ricardo.martincoski@datacom.com.br>
Subject: [Buildroot] [PATCH 1/2] support/testing/infra/emulator.py: support init=/bin/sh
Date: Mon, 15 Jul 2024 14:50:39 +0000 [thread overview]
Message-ID: <20240715-support-testing-fix-testinitsystemnone-v1-1-299145b2d342@collins.com> (raw)
In-Reply-To: <20240715-support-testing-fix-testinitsystemnone-v1-0-299145b2d342@collins.com>
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>
---
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',
--
2.45.2
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-07-15 14:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-15 14:50 [Buildroot] [PATCH 0/2] support/testing: fix TestInitSystemNone for non-login shell Brandon Maier via buildroot
2024-07-15 14:50 ` Brandon Maier via buildroot [this message]
2024-07-15 14:50 ` [Buildroot] [PATCH 2/2] " Brandon Maier via buildroot
2024-07-22 19:51 ` [Buildroot] [PATCH 0/2] " Thomas Petazzoni via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240715-support-testing-fix-testinitsystemnone-v1-1-299145b2d342@collins.com \
--to=buildroot@buildroot.org \
--cc=brandon.maier@collins.com \
--cc=ricardo.martincoski@datacom.com.br \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox