make reserved-memory work on mips, and improve test

This commit is contained in:
Daniel Barlow 2023-12-21 22:21:20 +00:00
parent dbb82339bd
commit 231c2cef03
2 changed files with 17 additions and 5 deletions

View file

@ -14,9 +14,17 @@ while {[gets $fh line] >= 0} {
close $fh
expect {
"s6-linux-init" { exit 0 }
"s6-linux-init" { }
"Reserved memory: unsupported node format, ignoring" { exit 1 }
timeout { exit 1 }
}
expect {
"#" { send "test -f /proc/device-tree/reserved-memory/phram-rootfs*/name && tty \r" }
timeout { exit 1 }
}
expect {
"/dev/ttyS0" { exit 0 }
timeout { exit 1 }
}