min-copy-clocure test: ensure sshd up before starting
this test goes wrong intermittently in CI, see if this makes it more reliable
This commit is contained in:
@@ -1,13 +1,20 @@
|
||||
set timeout 60
|
||||
|
||||
spawn socat unix-connect:vm/console -
|
||||
send "\r\n"
|
||||
expect {
|
||||
"# " { send "hostname\r\n" };
|
||||
"s6-linux-init" { }
|
||||
timeout { exit 1 }
|
||||
}
|
||||
|
||||
set timeout 30
|
||||
expect {
|
||||
"(none)" {}
|
||||
"liminix" {}
|
||||
timeout { exit(1) }
|
||||
}
|
||||
"#" { 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 }
|
||||
}
|
||||
|
Reference in New Issue
Block a user