1
0
liminix/tests/min-copy-closure/wait-until-ready.expect
Daniel Barlow 9dc0f25587 min-copy-clocure test: ensure sshd up before starting
this test goes wrong intermittently in CI, see if this makes it more
reliable
2025-03-09 21:37:13 +00:00

21 lines
434 B
Plaintext

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 }
}