From 27b4d606780cef0d7259fb3e17362297f4033c43 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Wed, 19 May 2021 22:03:38 +0200 Subject: [PATCH] ci: skip root tty login We use the `autologin` mkosi option (see mkosi.default.d/10-systemd.conf), so the pexpect root login throws a (harmless) error: ``` Arch Linux (built from systemd tree) Kernel 5.4.0-1047-azure on an x86_64 (console) image login: root (automatic login) root root [root@image ~]# systemctl poweroff root -bash: root: command not found [root@image ~]# systemctl poweroff ``` --- .github/workflows/test_mkosi_boot.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/test_mkosi_boot.py b/.github/workflows/test_mkosi_boot.py index 37904eb0591..3418fd3a513 100755 --- a/.github/workflows/test_mkosi_boot.py +++ b/.github/workflows/test_mkosi_boot.py @@ -8,9 +8,6 @@ import sys def run() -> None: p = pexpect.spawnu(" ".join(sys.argv[1:]), logfile=sys.stdout, timeout=300) - p.expect("login:") - p.sendline("root") - p.expect("#") p.sendline("systemctl poweroff") -- 2.47.3