浏览代码

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 95e10430131fb524a27985b82ee70ae8d0fe71d9)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Brandon Maier 1 年之前
父节点
当前提交
8b83136326
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      support/testing/infra/emulator.py

+ 3 - 0
support/testing/infra/emulator.py

@@ -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',