]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ci: skip root tty login 19669/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 19 May 2021 20:03:38 +0000 (22:03 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Wed, 19 May 2021 21:07:25 +0000 (23:07 +0200)
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

index 37904eb059111dd7efced65c7a85868fe1022fa9..3418fd3a51398c6ab877fa03ea2536ab8f10eace 100755 (executable)
@@ -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")