1
0
liminix/tests/min-copy-closure/wait-until-ready.expect

21 lines
434 B
Plaintext
Raw Normal View History

2023-05-07 21:02:10 +00:00
set timeout 60
spawn socat unix-connect:vm/console -
expect {
"s6-linux-init" { }
timeout { exit 1 }
}
set timeout 30
expect {
"#" { send "PS1=\$(echo 'I1JFQURZIyA=' | base64 -d); stty -echo\n" }
timeout { exit 1 }
}
expect {
"#READY#" { send "s6-svwait -t 10000 -u /run/service/sshd; echo continue\n" }
timeout { exit 1 }
}
expect {
"#READY#" { }
timeout { exit 1 }
}