better detect test succeeded

This commit is contained in:
Daniel Barlow
2023-12-22 15:29:33 +00:00
parent 231c2cef03
commit 5f9ffa804f
2 changed files with 4 additions and 2 deletions

View File

@@ -20,11 +20,11 @@ expect {
}
expect {
"#" { send "test -f /proc/device-tree/reserved-memory/phram-rootfs*/name && tty \r" }
"#" { send "test -f /proc/device-tree/reserved-memory/phram-rootfs*/name && hostname \r" }
timeout { exit 1 }
}
expect {
"/dev/ttyS0" { exit 0 }
"tftpboot-test" { exit 0 }
timeout { exit 1 }
}