Update expect.sh

This commit is contained in:
Lup Yuen Lee 2024-01-24 23:24:03 +08:00 committed by GitHub
parent ad60696456
commit 1d56a09ba4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,5 +7,8 @@ send -s "uname -a\r"
expect "nsh> "
send -s "ostest\r"
expect "ostest_main: Exiting with status -1" { exit 0 }
exit 1
expect {
"ostest_main: Exiting with status 0" { exit 0 }
timeout { exit 1 }
}