Skip to content

Commit

Permalink
Fixed installation expect script (#9961)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbsd authored Apr 17, 2024
1 parent d6928ac commit dc19b80
Showing 1 changed file with 11 additions and 3 deletions.
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

0 comments on commit dc19b80

Please sign in to comment.