Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TE-1630 / 13.0 / Fixed installation expect script #10270

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions tests/install.exp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ set timeout 1800
set PID [spawn vm console "$vm"]
send_user "Spawned PID: $PID \n"

# Select the serial console at the boot setup.
expect {
"Autoboot" {
sleep .5
send "2"
}
}

# ┌───────────FreeNAS 11.3-MASTER-201810170704 Console Setup──────────────┐
# │ ┌───────────────────────────────────────────────────────────────────┐ │
# │ │ 1 Install/Upgrade │ │
Expand All @@ -21,7 +29,7 @@ send_user "Spawned PID: $PID \n"
# └───────────────────────────────────────────────────────────────────────┘

expect {
"Console Setup" {
"TrueNAS * Console Setup" {
sleep .5
send "1"
send "\r"
Expand Down Expand Up @@ -149,13 +157,13 @@ expect {

# Installation complete!
expect {
"installation on ada0 succeeded!" {
"installation on * succeeded!" {
send_user "Bhyve installation finished."
sleep 5
exit 0
}

"installation on ada0 failed." {
"installation on * failed." {
send_user "Bhyve installation failed."
sleep 5
exit 1
Expand Down
Loading